diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2016-06-13 16:27:01 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2016-06-13 16:27:01 +0200 |
commit | 30717592e2defc29cadae4cad4194502a3e75cf5 (patch) | |
tree | 44b32c2442568d7bc49128bef392adb454d96709 | |
parent | ad23a23ed29fb6ba8e60f63dcd879ca2284bf3ac (diff) | |
download | gcc-30717592e2defc29cadae4cad4194502a3e75cf5.zip gcc-30717592e2defc29cadae4cad4194502a3e75cf5.tar.gz gcc-30717592e2defc29cadae4cad4194502a3e75cf5.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ggc-tests.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0e1baea..2d8b42b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. 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 <test_struct> ()); ASSERT_TRUE (need_finalization_p <test_struct_with_dtor> ()); +#endif /* Create some garbage. */ const int count = 10; |