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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user