testsuite: Move C++ tests in gdc.test into own subdirectory.
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 29 Mar 2020 11:27:22 +0000 (13:27 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 29 Mar 2020 17:25:27 +0000 (19:25 +0200)
commitafd9da8b8ad01268478fca6db3f63ca4c51b1900
tree1a2c7f94756de4777e54d8bff22757d9a334e66b
parent85f6f317ec8c02beea0a8dcb9c9274ebcffc1da7
testsuite: Move C++ tests in gdc.test into own subdirectory.

Tests have been moved into runnable_cxx as part of upstream dmd 3e10e2dd2.

The extra flags required for tests that mix C++ and D are now limited to
only a small subset of tests, rather than applied to all tests across
gdc.dg and gdc.test.

Reviewed-on: https://github.com/dlang/dmd/pull/10980

gcc/testsuite/ChangeLog:

* gdc.test/runnable_cxx/runnable_cxx.exp: New file.
* lib/gdc-utils.exp (gdc-do-test): Add case for runnable_cxx.
* lib/gdc.exp (gdc_include_flags): Only add flags for libstdc++-v3 if
GDC_INCLUDE_CXX_FLAGS is true.
(gdc_link_flags): Likewise.
(gdc_init): Move setting of default gdc test flags to...
(gdc_target_compile): ...here.
25 files changed:
gcc/d/dmd/MERGE
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.test/runnable/cabi1.d [deleted file]
gcc/testsuite/gdc.test/runnable/cpp_abi_tests.d [deleted file]
gcc/testsuite/gdc.test/runnable/cppa.d [deleted file]
gcc/testsuite/gdc.test/runnable/externmangle.d [deleted file]
gcc/testsuite/gdc.test/runnable/externmangle2.d [deleted file]
gcc/testsuite/gdc.test/runnable/extra-files/cabi2.cpp [deleted file]
gcc/testsuite/gdc.test/runnable/extra-files/cpp_abi_tests.cpp [deleted file]
gcc/testsuite/gdc.test/runnable/extra-files/cppb.cpp [deleted file]
gcc/testsuite/gdc.test/runnable/extra-files/externmangle.cpp [deleted file]
gcc/testsuite/gdc.test/runnable/extra-files/externmangle2.cpp [deleted file]
gcc/testsuite/gdc.test/runnable_cxx/cabi1.d [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/cpp_abi_tests.d [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/cppa.d [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/externmangle.d [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/externmangle2.d [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/extra-files/cabi2.cpp [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/extra-files/cpp_abi_tests.cpp [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/extra-files/cppb.cpp [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/extra-files/externmangle.cpp [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/extra-files/externmangle2.cpp [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable_cxx/runnable_cxx.exp [new file with mode: 0644]
gcc/testsuite/lib/gdc-utils.exp
gcc/testsuite/lib/gdc.exp