summaryrefslogtreecommitdiff
path: root/gcc/ggc-tests.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2016-06-13 16:27:01 +0200
committerUros Bizjak <uros@gcc.gnu.org>2016-06-13 16:27:01 +0200
commit30717592e2defc29cadae4cad4194502a3e75cf5 (patch)
tree44b32c2442568d7bc49128bef392adb454d96709 /gcc/ggc-tests.c
parentad23a23ed29fb6ba8e60f63dcd879ca2284bf3ac (diff)
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
Diffstat (limited to 'gcc/ggc-tests.c')
-rw-r--r--gcc/ggc-tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ggc-tests.c b/gcc/ggc-tests.c
index 48eac03103b..7f972314981 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 <test_struct> ());
ASSERT_TRUE (need_finalization_p <test_struct_with_dtor> ());
+#endif
/* Create some garbage. */
const int count = 10;