[Flang] Add semantics checks for CrayPointer usage in DSA list (#123171)
[llvm-project.git] / libcxx / test / std / thread / thread.threads / thread.thread.class / thread.thread.assign / copy.compile.fail.cpp
blob9d7e1044be2961c6ff2bfc11742b00d19e635a2a
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 //===----------------------------------------------------------------------===//
9 // <thread>
11 // class thread
13 // thread& operator=(thread&& t);
15 #include <thread>
17 int main(int, char**)
19 std::thread t0;
20 std::thread t1;
21 t0 = t1;
22 return 0;