1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <future> 11 12 // enum class future_status 13 // { 14 // ready, 15 // timeout, 16 // deferred 17 // }; 18 19 #include <future> 20 main()21int main() 22 { 23 static_assert(static_cast<int>(std::future_status::ready) == 0, ""); 24 static_assert(static_cast<int>(std::future_status::timeout) == 1, ""); 25 static_assert(static_cast<int>(std::future_status::deferred) == 2, ""); 26 } 27