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
//===----------------------------------------------------------------------===//
14
// bool operator< (thread::id x, thread::id y);
15
// bool operator<=(thread::id x, thread::id y);
16
// bool operator> (thread::id x, thread::id y);
17
// bool operator>=(thread::id x, thread::id y);
26
std::thread::id id2 = std::this_thread::get_id();
28
assert( (id0 <= id1));
30
assert( (id0 >= id1));
32
assert( (id0 <= id2));
34
assert(!(id0 >= id2));