aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/std
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-09-15 21:37:46 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-09-15 21:57:38 +0100
commit038c0afa893f8cb2277ff44be3e2c09cfab4bc0c (patch)
tree4935c9338e63d878534d52d59a772ba563a291ad /libstdc++-v3/testsuite/std
parentd7b6020276a843e97f6135259b4ab3b53a5850e2 (diff)
downloadgcc-038c0afa893f8cb2277ff44be3e2c09cfab4bc0c.zip
gcc-038c0afa893f8cb2277ff44be3e2c09cfab4bc0c.tar.gz
gcc-038c0afa893f8cb2277ff44be3e2c09cfab4bc0c.tar.bz2
libstdc++: Fix 29_atomics/headers/atomic/types_std_c++2a_neg.cc for C++23
This test fails when run as C++23 because the <bits/stdc++.h> PCH includes <stdatomic.h> which declares ::memory_order, invalidating the test's assumptions. Disable PCH so that the test verifies that <atomic> doesn't declare ::memory_order, as originally intended. Also fix the using-declaration which would be invalid even if the type was declared in the global namespace, and adjust the expected error. libstdc++-v3/ChangeLog: * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: Fix test to work for C++23 and C++26 too.
Diffstat (limited to 'libstdc++-v3/testsuite/std')
0 files changed, 0 insertions, 0 deletions