]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Improve 26_numerics/headers/cmath/types_std_c++0x_neg.cc
authorJonathan Wakely <jwakely@redhat.com>
Fri, 18 Oct 2024 11:02:45 +0000 (12:02 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 21 Oct 2024 11:12:15 +0000 (12:12 +0100)
commitd0d99fc6b6c4f1c3fa8a9427f461103c78ab457b
treebb3d13922ee357f14db45c610fbaa0321cf5a8ca
parent1003a428154cd2e556c1fba994d4f3ea2442fc95
libstdc++: Improve 26_numerics/headers/cmath/types_std_c++0x_neg.cc

This test checks that the special functions in <cmath> are not declared
prior to C++17. But we can remove the target selector and allow it to be
tested for C++17 and later, and add target selectors to the individual
dg-error directives instead.

Also rename the test to match what it actually tests.

libstdc++-v3/ChangeLog:

* testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc:
Move to ...
* testsuite/26_numerics/headers/cmath/specfun_c++17.cc: here and
adjust test to be valid for all -std dialects.
libstdc++-v3/testsuite/26_numerics/headers/cmath/specfun_c++17.cc [moved from libstdc++-v3/testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc with 57% similarity]