From: Hans-Peter Nilsson Date: Tue, 26 Sep 2023 13:59:02 +0000 (+0200) Subject: testsuite: Require thread-fence for 29_atomics/atomic_flag/cons/value_init.cc X-Git-Tag: basepoints/gcc-15~5854 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd0c42cd37dab62f9f61ac834333ec899305dee4;p=thirdparty%2Fgcc.git testsuite: Require thread-fence for 29_atomics/atomic_flag/cons/value_init.cc A recent patch made __atomic_test_and_set no longer fall back to emitting non-atomic code, but instead will then emit a call to __atomic_test_and_set, thereby exposing the need to gate also this test on support for atomics, similar to r14-3980-g62b29347c38394. libstdc++-v3: * testsuite/29_atomics/atomic_flag/cons/value_init.cc: Add dg-require-thread-fence. --- diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc index 084e2930f7e2..f3f38b54dbcd 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc @@ -16,6 +16,7 @@ // . // { dg-do run { target c++20 } } +// { dg-require-thread-fence "" } #include #include