gcc/libstdc++-v3/testsuite/lib
Jason Merrill 6fb589cd4b c++, libstdc++: add "modules" std to testsuite
Since modules aren't enabled by default at any -std= yet, let's add a
pseudo-std for them, like we already have for -fimplicit-constexpr.  And
also add to target-supports so dg lines can check { target modules }.

To run library tests with modules we need to compile them; this patch makes
us build a header unit for bits/stdc++.h and module interface units for std
and std.compat, if v3_std_list includes "modules".  So this doesn't happen
by default without a further change.

libstdc++-v3/ChangeLog:

	* testsuite/Makefile.am (CLEANFILES): Add gcm.cache.
	* testsuite/Makefile.in: Regenerate.
	* testsuite/lib/dg-options.exp (add_options_for_no_pch): Also add
	-fno-modules.
	* testsuite/lib/libstdc++.exp (v3_std_list): Handle "modules" std.
	(v3_modules_std): New global.
	(v3-build_support): Build gcms for bits/stdc++.h, std, and
	std.compat.

gcc/testsuite/ChangeLog:

	* lib/g++-dg.exp: Handle "modules" std.
	* lib/target-supports.exp (check_effective_target_modules): New.
2025-12-11 23:31:18 +07:00
..
dg-options.exp c++, libstdc++: add "modules" std to testsuite 2025-12-11 23:31:18 +07:00
gdb-test.exp Update copyright years. 2025-01-02 11:59:57 +01:00
libstdc++.exp c++, libstdc++: add "modules" std to testsuite 2025-12-11 23:31:18 +07:00
prune.exp libstdc++: sync prune.exp with GCC 2025-11-12 09:05:41 +05:30