aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-09-16 17:50:21 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-09-16 21:19:09 +0100
commit47deb1ef874c078ac51bc1970a3324f5c8002815 (patch)
tree482f8d9f56a6fcfcc882b49b02336609e387670d /gcc
parent7107ea6fb933f1e928593c7e92edfd64ccf0df63 (diff)
downloadgcc-47deb1ef874c078ac51bc1970a3324f5c8002815.zip
gcc-47deb1ef874c078ac51bc1970a3324f5c8002815.tar.gz
gcc-47deb1ef874c078ac51bc1970a3324f5c8002815.tar.bz2
libstdc++: Fix compare_exchange_padding.cc test for std::atomic_ref
This test was written assuming that std::atomic_ref clears its target's padding on construction, but that could introduce data races. Change the test to store a value after construction and check that its padding is cleared by the store. libstdc++-v3/ChangeLog: * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc: Store value with non-zero padding bits after construction.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions