summaryrefslogtreecommitdiffstats
path: root/libcxx/include/atomic
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-05-03 02:12:26 +0000
committerEric Fiselier <eric@efcs.ca>2016-05-03 02:12:26 +0000
commit15a297212fd42fddfca93b58dacbde1705f12d53 (patch)
tree2f623cbbb8ca9996d30ac459ae31467470a48b19 /libcxx/include/atomic
parent43a10eb637b2da24cc8d5ee1c52a7ff3a485cf9c (diff)
downloadbcm5719-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/include/atomic')
-rw-r--r--libcxx/include/atomic2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/atomic b/libcxx/include/atomic
index dc117e93a29..a0245eb6ac4 100644
--- a/libcxx/include/atomic
+++ b/libcxx/include/atomic
@@ -1689,7 +1689,7 @@ typedef struct atomic_flag
#endif // _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
_LIBCPP_INLINE_VISIBILITY
- atomic_flag(bool __b) _NOEXCEPT : __a_(__b) {}
+ atomic_flag(bool __b) _NOEXCEPT : __a_(__b) {} // EXTENSION
#ifndef _LIBCPP_HAS_NO_DELETED_FUNCTIONS
atomic_flag(const atomic_flag&) = delete;
OpenPOWER on IntegriCloud