diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-07-21 16:13:09 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-07-21 16:13:09 +0000 |
commit | 02e610ef3440301bf8f13ce43238306b6eaf7d53 (patch) | |
tree | d8da1e4bd968d2dc75127bcb01d6ac5b819550ee /libcxx/test/thread | |
parent | 9669c198ba7d66d95c6e7edf66c275335d4d27d6 (diff) | |
download | bcm5719-llvm-02e610ef3440301bf8f13ce43238306b6eaf7d53.tar.gz bcm5719-llvm-02e610ef3440301bf8f13ce43238306b6eaf7d53.zip |
noexcept and constexpr applied to <mutex>.
llvm-svn: 160604
Diffstat (limited to 'libcxx/test/thread')
-rw-r--r-- | libcxx/test/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libcxx/test/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp b/libcxx/test/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp index dc4a07405ff..6995f064833 100644 --- a/libcxx/test/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp +++ b/libcxx/test/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp @@ -11,11 +11,18 @@ // struct once_flag; -// constexpr once_flag(); +// constexpr once_flag() noexcept; #include <mutex> int main() { + { std::once_flag f; + } +#ifndef _LIBCPP_HAS_NO_CONSTEXPR + { + constexpr std::once_flag f; + } +#endif } |