• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <mutex>
11 
12 // struct once_flag;
13 
14 // constexpr once_flag() noexcept;
15 
16 #include <mutex>
17 #include "test_macros.h"
18 
main()19 int main()
20 {
21     {
22     std::once_flag f;
23     (void)f;
24     }
25 #if TEST_STD_VER >= 11
26     {
27     constexpr std::once_flag f;
28     (void)f;
29     }
30 #endif
31 }
32