1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // <mutex> 10 11 // struct once_flag; 12 13 // constexpr once_flag() noexcept; 14 15 #include <mutex> 16 #include "test_macros.h" 17 main(int,char **)18int main(int, char**) 19 { 20 { 21 std::once_flag f; 22 (void)f; 23 } 24 #if TEST_STD_VER >= 11 25 { 26 constexpr std::once_flag f; 27 (void)f; 28 } 29 #endif 30 31 return 0; 32 } 33