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
This commit is contained in:
Uros Bizjak 2016-06-13 16:27:01 +02:00 committed by Uros Bizjak
parent ad23a23ed2
commit 30717592e2
2 changed files with 7 additions and 0 deletions

View 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.

View 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;