]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix broken tests for <complex.h>
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 14:23:23 +0000 (15:23 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 11 Nov 2023 00:41:09 +0000 (00:41 +0000)
commit7c02efd45f5e727ab8a1b397bce8817f4ab65954
treec612c63956862c16d22b0e1005e7ac82e94ccc3a
parent0953497a81f1e320989b9f2aaa7f56747eddd4a0
libstdc++: Fix broken tests for <complex.h>

When I added these tests I gave them .h file extensions, so they've
never been run.

They need to use the no_pch option, so that they only test the
<complex.h> header and don't get <complex> via <bits/stdc++.h>.

libstdc++-v3/ChangeLog:

* testsuite/26_numerics/headers/complex.h/std_c++11.h: Moved to...
* testsuite/26_numerics/headers/complex.h/std_c++11.cc: ...here.
* testsuite/26_numerics/headers/complex.h/std_c++98.h: Moved to...
* testsuite/26_numerics/headers/complex.h/std_c++98.cc: ...here.
Check macro first and then #undef.
* testsuite/26_numerics/headers/complex.h/std_gnu++11.h: Moved to...
* testsuite/26_numerics/headers/complex.h/std_gnu++11.cc: ...here.
libstdc++-v3/testsuite/26_numerics/headers/complex.h/std_c++11.cc [moved from libstdc++-v3/testsuite/26_numerics/headers/complex.h/std_c++11.h with 91% similarity]
libstdc++-v3/testsuite/26_numerics/headers/complex.h/std_c++98.cc [moved from libstdc++-v3/testsuite/26_numerics/headers/complex.h/std_c++98.h with 87% similarity]
libstdc++-v3/testsuite/26_numerics/headers/complex.h/std_gnu++11.cc [moved from libstdc++-v3/testsuite/26_numerics/headers/complex.h/std_gnu++11.h with 95% similarity]
This page took 0.065378 seconds and 5 git commands to generate.