diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-06-12 10:22:05 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-06-12 10:31:07 +0100 |
commit | 17412a74c531a21595311df5428f26552e82dfa8 (patch) | |
tree | 2617ccc1d5ae629d58dd10285bf1ed817a215680 /gcc | |
parent | a6db99a61a86814241b66a17a65633338d86cc17 (diff) | |
download | gcc-17412a74c531a21595311df5428f26552e82dfa8.zip gcc-17412a74c531a21595311df5428f26552e82dfa8.tar.gz gcc-17412a74c531a21595311df5428f26552e82dfa8.tar.bz2 |
libstdc++: Make std::atomic_flag::test members const
Also fix the tests so they run without an explicit -std=gnu++2a in the
RUNTESTFLAGS, and test the new function on const-qualified objects.
* include/bits/atomic_base.h (atomic_flag::test): Add missing
const qualifiers.
* testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
dg-options and verify results of test function.
* testsuite/29_atomics/atomic_flag/test/implicit.cc: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions