noexcept and constexpr applied to <mutex>.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@160604 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2012-07-21 16:13:09 +00:00
parent 46623a09ee
commit 499c61f999
4 changed files with 65 additions and 54 deletions

View File

@@ -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
}