gcc/libstdc++-v3/testsuite
Jonathan Wakely b857b17977 libstdc++: Require c++98_only effective target for some tests
These tests verify that including C++11 headers fails to compile in
C++98 mode. They use { dg-options "-std=gnu++98" } so that they are
explicitly run in C++98 mode. This change also adds a target selector so
that the tests will be skipped even if the dg-options directive is
filtered out or overridden. This is in preparation for a desired future
change where tests do not use -std options, so that they can be tested
with e.g. --target_board=unix\"{-std=gnu++17,-std=gnu++20}\"

In some cases the dg-options and dg-do directives need to be reordered,
so that the -std=gnu++98 option is already added to the options before
the target selector is checked.

libstdc++-v3/ChangeLog:

	* testsuite/18_support/headers/cstdalign/std_c++0x_neg.cc: Add
	c++98_only target selector.
	* testsuite/18_support/headers/cstdbool/std_c++0x_neg.cc:
	Likewise.
	* testsuite/18_support/headers/cstdint/std_c++0x_neg.cc:
	Likewise.
	* testsuite/18_support/headers/new/synopsis_cxx98.cc: Likewise.
	* testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc:
	Likewise.
	* testsuite/20_util/headers/type_traits/std_c++0x_neg.cc:
	Likewise.
	* testsuite/23_containers/headers/array/std_c++0x_neg.cc:
	Likewise.
	* testsuite/23_containers/headers/tuple/std_c++0x_neg.cc:
	Likewise.
	* testsuite/23_containers/headers/unordered_map/std_c++0x_neg.cc:
	Likewise.
	* testsuite/23_containers/headers/unordered_set/std_c++0x_neg.cc:
	Likewise.
	* testsuite/26_numerics/headers/ccomplex/std_c++0x_neg.cc:
	Likewise.
	* testsuite/26_numerics/headers/cfenv/std_c++0x_neg.cc:
	Likewise.
	* testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc:
	Likewise.
	* testsuite/26_numerics/headers/ctgmath/std_c++0x_neg.cc:
	Likewise.
	* testsuite/26_numerics/headers/random/std_c++0x_neg.cc:
	Likewise.
	* testsuite/27_io/headers/cinttypes/std_c++0x_neg.cc: Likewise.
	* testsuite/28_regex/headers/regex/std_c++0x_neg.cc: Likewise.
	* testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc:
	Likewise.
	* testsuite/30_threads/headers/condition_variable/std_c++0x_neg.cc:
	Likewise.
	* testsuite/30_threads/headers/future/std_c++0x_neg.cc:
	Likewise.
	* testsuite/30_threads/headers/mutex/std_c++0x_neg.cc: Likewise.
	* testsuite/30_threads/headers/thread/std_c++0x_neg.cc:
	Likewise.
2020-07-02 21:27:12 +01:00
..
17_intro
18_support libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
19_diagnostics libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
20_util libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
21_strings Adjust text of expected warnings changed in PR c++/86568. 2020-07-01 08:33:29 -06:00
22_locale
23_containers libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
24_iterators c++: Refinements to "more constrained". 2020-06-20 10:57:21 -04:00
25_algorithms libstdc++: Fix some ranges algos optimizations [PR95578] 2020-06-10 17:37:53 -04:00
26_numerics libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
27_io libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
28_regex libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
29_atomics libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
30_threads libstdc++: Require c++98_only effective target for some tests 2020-07-02 21:27:12 +01:00
abi
backward
config
data
decimal
experimental PR libstdc++/95915 2020-06-29 00:36:38 +03:00
ext
lib
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
std libstdc++: Fix view adaptors for mixed-const sentinels and iterators (PR 95322) 2020-05-27 22:08:15 +01:00
tr1
tr2
util PR libstdc++/95915 2020-06-29 00:36:38 +03:00
Makefile.am
Makefile.in libstdc++: Regenerate makefiles 2020-06-23 07:59:40 +01:00