aboutsummaryrefslogtreecommitdiff
path: root/test/std/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp
blob: 21011ed17cd96f227fc71299ca87ec7806722422 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// <mutex>

// struct once_flag;

// constexpr once_flag() noexcept;

#include <mutex>
#include "test_macros.h"

int main()
{
    {
    std::once_flag f;
    }
#if TEST_STD_VER >= 11
    {
    constexpr std::once_flag f;
    }
#endif
}