[libcxx] [test] Replace non-Standard "atomic_flag f(false);" with Standard "atomic_fl...
authorEric Fiselier <eric@efcs.ca>
Tue, 3 May 2016 02:12:26 +0000 (02:12 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 3 May 2016 02:12:26 +0000 (02:12 +0000)
commit15a297212fd42fddfca93b58dacbde1705f12d53
tree2f623cbbb8ca9996d30ac459ae31467470a48b19
parent43a10eb637b2da24cc8d5ee1c52a7ff3a485cf9c
[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
libcxx/include/atomic
libcxx/test/libcxx/atomics/atomics.flag/init_bool.pass.cpp [moved from libcxx/test/std/atomics/atomics.flag/init03.pass.cpp with 75% similarity]
libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp
libcxx/test/std/atomics/atomics.flag/atomic_flag_clear_explicit.pass.cpp
libcxx/test/std/atomics/atomics.flag/clear.pass.cpp