diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-05-03 02:12:26 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-05-03 02:12:26 +0000 |
commit | 15a297212fd42fddfca93b58dacbde1705f12d53 (patch) | |
tree | 2f623cbbb8ca9996d30ac459ae31467470a48b19 /libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp | |
parent | 43a10eb637b2da24cc8d5ee1c52a7ff3a485cf9c (diff) | |
download | bcm5719-llvm-15a297212fd42fddfca93b58dacbde1705f12d53.tar.gz bcm5719-llvm-15a297212fd42fddfca93b58dacbde1705f12d53.zip |
[libcxx] [test] Replace non-Standard "atomic_flag f(false);" with Standard "atomic_flag f;"
Summary:
Replace non-Standard "atomic_flag f(false);" with Standard "atomic_flag f;" in clear tests.
Although the value of 'f' is unspecified it shouldn't matter because these tests always call `f.test_and_set()` without checking the result, so the initial state shouldn't matter.
The test init03.pass.cpp is explicitly testing this non-Standard extension; It has been moved into the `test/libcxx` directory.
Reviewers: mclow.lists, STL_MSFT
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D19758
llvm-svn: 268355
Diffstat (limited to 'libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp')
-rw-r--r-- | libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp b/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp index 3a74e13faf1..64093d639e4 100644 --- a/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp +++ b/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp @@ -22,13 +22,13 @@ int main() { { - std::atomic_flag f(false); + std::atomic_flag f; f.test_and_set(); atomic_flag_clear(&f); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f(false); + volatile std::atomic_flag f; f.test_and_set(); atomic_flag_clear(&f); assert(f.test_and_set() == 0); |