From 30717592e2defc29cadae4cad4194502a3e75cf5 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 13 Jun 2016 16:27:01 +0200 Subject: ggc-tests.c (test_finalization): Only test need_finalization_p for GCC_VERSION >= 4003. * ggc-tests.c (test_finalization): Only test need_finalization_p for GCC_VERSION >= 4003. From-SVN: r237381 --- gcc/ggc-tests.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/ggc-tests.c') diff --git a/gcc/ggc-tests.c b/gcc/ggc-tests.c index 48eac03..7f97231 100644 --- a/gcc/ggc-tests.c +++ b/gcc/ggc-tests.c @@ -190,8 +190,10 @@ int test_struct_with_dtor::dtor_call_count; static void test_finalization () { +#if GCC_VERSION >= 4003 ASSERT_FALSE (need_finalization_p ()); ASSERT_TRUE (need_finalization_p ()); +#endif /* Create some garbage. */ const int count = 10; -- cgit v1.1