15f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow//===----------------------------------------------------------------------===// 25f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// 35f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// The LLVM Compiler Infrastructure 45f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// 55f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// This file is dual licensed under the MIT and the University of Illinois Open 65f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// Source Licenses. See LICENSE.TXT for details. 75f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// 85f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow//===----------------------------------------------------------------------===// 95f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow 105f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// <thread> 115f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow 125f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// class thread 135f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// template <class _Fp, class ..._Args, 145f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// explicit thread(_Fp&& __f, _Args&&... __args); 155f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// This constructor shall not participate in overload resolution 165f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow// if decay<F>::type is the same type as std::thread. 175f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow 185f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow 195f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow#include <thread> 205f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow#include <cassert> 215f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow 225f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clowint main() 235f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow{ 245f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow volatile std::thread t1; 255f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow std::thread t2 ( t1, 1, 2.0 ); 265f2d5b95e689a041005d9e4eac41ab6c25e94738Marshall Clow} 27