[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / thread / thread.threads / thread.thread.class / thread.thread.assign / move2.pass.cpp
blob9c31a2c65b2d43dec25f85e428e36cf96504d3bb
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 // UNSUPPORTED: no-threads
11 // <thread>
13 // class thread
15 // thread& operator=(thread&& t);
17 #include <thread>
18 #include <cassert>
19 #include <cstdlib>
20 #include <exception>
21 #include <utility>
23 #include "make_test_thread.h"
24 #include "test_macros.h"
26 struct G
28 void operator()() { }
31 void f1()
33 std::_Exit(0);
36 int main(int, char**)
38 std::set_terminate(f1);
40 G g;
41 std::thread t0 = support::make_test_thread(g);
42 std::thread t1;
43 t0 = std::move(t1);
44 assert(false);
47 return 0;