aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-tests.c
AgeCommit message (Collapse)AuthorFilesLines
2017-01-01Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r243994
2016-10-25Expose forcibly_ggc_collect and run it after all selftestsDavid Malcolm1-14/+14
gcc/ChangeLog: * ggc-tests.c (forcibly_ggc_collect): Rename to... (selftest::forcibly_ggc_collect): ...this, and remove "static". (test_basic_struct): Update for above renaming. (test_length): Likewise. (test_union): Likewise. (test_finalization): Likewise. (test_deletable_global): Likewise. (test_inheritance): Likewise. (test_chain_next): Likewise. (test_user_struct): Likewise. (test_tree_marking): Likewise. * selftest-run-tests.c (selftest::run_tests): Call selftest::forcibly_ggc_collect at the end of the selftests. * selftest.h (selftest::forcibly_ggc_collect): New decl. From-SVN: r241527
2016-06-13ggc-tests.c (test_finalization): Only test need_finalization_p for ↵Uros Bizjak1-0/+2
GCC_VERSION >= 4003. * ggc-tests.c (test_finalization): Only test need_finalization_p for GCC_VERSION >= 4003. From-SVN: r237381
2016-06-10Add ggc-tests.cDavid Malcolm1-0/+523
gcc/ChangeLog: * Makefile.in (OBJS): Add ggc-tests.o. (GTFILES): Add ggc-tests.c. * ggc-tests.c: New file. * selftest-run-tests.c (selftest::run_tests): Call selftest::ggc_tests_c_tests. * selftest.h (selftest::ggc_tests_c_tests): New prototype. From-SVN: r237309