]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ggc-tests.c (test_finalization): Only test need_finalization_p for GCC_VERSION >...
authorUros Bizjak <ubizjak@gmail.com>
Mon, 13 Jun 2016 14:27:01 +0000 (16:27 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 13 Jun 2016 14:27:01 +0000 (16:27 +0200)
* ggc-tests.c (test_finalization): Only test need_finalization_p
for GCC_VERSION >= 4003.

From-SVN: r237381

gcc/ChangeLog
gcc/ggc-tests.c

index 0e1baea5ca227191fc867ae693545d1e2f859daf..2d8b42bb365d3b98bea7685bba7d2c8e386f0007 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
+
+       * ggc-tests.c (test_finalization): Only test need_finalization_p
+       for GCC_VERSION >= 4003.
+
 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
 
        * config/s390/vecintrin.h: Fix file description in comment.
index 48eac03103b37ec67ffdaacea8f7cfc6bea1d47c..7f97231498101392aa9e20e5093e1fc06c8cda2b 100644 (file)
@@ -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;