1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: libcpp-has-no-threads
11 // UNSUPPORTED: c++98, c++03
17 // thread& operator=(thread&& t);
31 G() : alive_(1) {++n_alive;}
32 G(const G& g) : alive_(g.alive_) {++n_alive;}
33 ~G() {alive_ = 0; --n_alive;}
37 void operator()(int i, double j)
48 bool G::op_run = false;
57 std::set_terminate(f1);
60 std::thread t0(g, 5, 5.5);