summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp
blob: 6995f0648335c9f5621965dba705fd2382acabe7 (plain)
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
//===----------------------------------------------------------------------===//
//
//                     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>

int main()
{
    {
    std::once_flag f;
    }
#ifndef _LIBCPP_HAS_NO_CONSTEXPR
    {
    constexpr std::once_flag f;
    }
#endif
}
OpenPOWER on IntegriCloud