| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| G() : alive_(1) {++n_alive;} |
| G(const G& g) : alive_(g.alive_) {++n_alive;} |
| ~G() {alive_ = 0; --n_alive;} |
| std::thread::id id0 = t0.get_id(); |
| std::thread::id id1 = t1.get_id(); |
| assert(t0.get_id() == id1); |
| assert(t1.get_id() == id0); |