1*5a83710eSEric Fiselier //===----------------------------------------------------------------------===// 2*5a83710eSEric Fiselier // 3*5a83710eSEric Fiselier // The LLVM Compiler Infrastructure 4*5a83710eSEric Fiselier // 5*5a83710eSEric Fiselier // This file is dual licensed under the MIT and the University of Illinois Open 6*5a83710eSEric Fiselier // Source Licenses. See LICENSE.TXT for details. 7*5a83710eSEric Fiselier // 8*5a83710eSEric Fiselier //===----------------------------------------------------------------------===// 9*5a83710eSEric Fiselier // 10*5a83710eSEric Fiselier // UNSUPPORTED: libcpp-has-no-threads 11*5a83710eSEric Fiselier 12*5a83710eSEric Fiselier // <thread> 13*5a83710eSEric Fiselier 14*5a83710eSEric Fiselier // class thread 15*5a83710eSEric Fiselier 16*5a83710eSEric Fiselier // thread(); 17*5a83710eSEric Fiselier 18*5a83710eSEric Fiselier #include <thread> 19*5a83710eSEric Fiselier #include <cassert> 20*5a83710eSEric Fiselier 21*5a83710eSEric Fiselier int main() 22*5a83710eSEric Fiselier { 23*5a83710eSEric Fiselier std::thread t; 24*5a83710eSEric Fiselier assert(t.get_id() == std::thread::id()); 25*5a83710eSEric Fiselier } 26