testsuite: Require thread-fence for 29_atomics/atomic_flag/cons/value_init.cc
commitdd0c42cd37dab62f9f61ac834333ec899305dee4
authorHans-Peter Nilsson <hp@axis.com>
Tue, 26 Sep 2023 13:59:02 +0000 (26 15:59 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Tue, 26 Sep 2023 21:39:17 +0000 (26 23:39 +0200)
tree00aa35c1cf406f3df9bae18aa9bf04a32dd5a60b
parenta5f39859d0c14a831e2826f5e5cfe036e56dcd7d
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.
libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc