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 // once_flag(const once_flag&) = delete;
14 
15 #include <mutex>
16 
main(int,char **)17 int main(int, char**)
18 {
19     std::once_flag f;
20     std::once_flag f2(f);
21 
22   return 0;
23 }
24