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