gcc/libstdc++-v3/testsuite
Jonathan Wakely 5d2b807526 PR libstdc++/82417 do not include C99 <complex.h> in strict modes
As an extension the C++ version of <complex.h> includes the C version,
but that defines macros with non-reserved names that should not be
defined in ISO C++. Only include the C header for non-strict modes, or
for pre-C++11 (because C++98 doesn't mention <complex.h> at all).

	PR libstdc++/59087
	PR libstdc++/82417
	* include/c_compatibility/complex.h [!C++98 && __STRICT_ANSI__]: Do
	not include C library's <complex.h>.
	* testsuite/26_numerics/complex/c99.cc: Depend on __STRICT_ANSI__.
	* testsuite/26_numerics/headers/complex.h/std_c++11.h: New test.
	* testsuite/26_numerics/headers/complex.h/std_gnu++11.h: New test.
	* testsuite/26_numerics/headers/complex.h/std_c++98.h: New test.

From-SVN: r253581
2017-10-10 12:25:45 +01:00
..
17_intro re PR testsuite/81056 (FAIL: 17_intro/names.cc (test for excess errors)) 2017-08-20 18:52:59 +00:00
18_support PR libstdc++/81469 deprecate std::uncaught_exception for C++17 2017-09-20 17:34:49 +01:00
19_diagnostics Update copyright years. 2017-01-01 13:07:43 +01:00
20_util Fix new testsuite failure on newlib targets 2017-10-05 21:26:08 +01:00
21_strings PR libstdc++/79162 Fix std::string regression due to LWG 2946 2017-09-20 18:59:50 +01:00
22_locale 22131.cc: Make test less istreambuf_iterator implementation dependent. 2017-09-27 20:16:43 +00:00
23_containers invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z as deprecated. 2017-09-15 18:15:46 +02:00
24_iterators 2017-10-04 Petr Ovtchenkov <ptr@void-ptr.info> 2017-10-04 16:15:18 +00:00
25_algorithms Fix tests for std::clamp 2017-09-21 10:59:55 +01:00
26_numerics PR libstdc++/82417 do not include C99 <complex.h> in strict modes 2017-10-10 12:25:45 +01:00
27_io invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z as deprecated. 2017-09-15 18:15:46 +02:00
28_regex PR libstdc++/71500 restore C++11 compatibility in <regex> 2017-09-19 18:06:12 +01:00
29_atomics 69301.cc: Require atomic builtins. 2017-01-23 17:18:04 +00:00
30_threads invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z as deprecated. 2017-09-15 18:15:46 +02:00
abi Include missing header for std::free 2017-07-10 19:43:02 +01:00
backward Update copyright years. 2017-01-01 13:07:43 +01:00
config Update copyright years. 2017-01-01 13:07:43 +01:00
data
decimal Update copyright years. 2017-01-01 13:07:43 +01:00
experimental invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z as deprecated. 2017-09-15 18:15:46 +02:00
ext invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z as deprecated. 2017-09-15 18:15:46 +02:00
lib Define cxx11-abi effective target for libstdc++ tests 2017-01-13 14:57:33 +00:00
libstdc++-abi Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-dg Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-prettyprinters invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z as deprecated. 2017-09-15 18:15:46 +02:00
libstdc++-xmethods Update copyright years. 2017-01-01 13:07:43 +01:00
performance PR libstdc++/81476 Optimise vector insertion from input iterators 2017-07-19 20:32:15 +01:00
special_functions Fix missing returns in libstdc++ header and tests 2017-06-16 09:13:37 +01:00
tr1 Use pthread effective-target in testsuite 2017-06-15 12:18:05 +00:00
tr2 Update copyright years. 2017-01-01 13:07:43 +01:00
util Fix indentation in libstdc++ testsuite utils 2017-07-19 15:49:00 +01:00
Makefile.am Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.in re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) 2017-01-17 10:38:48 +01:00