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 launch 13 // { 14 // async = 1, 15 // deferred = 2, 16 // any = async | deferred 17 // }; 18 19 #include <future> 20 main()21int main() 22 { 23 static_assert(static_cast<int>(std::launch::any) == 24 (static_cast<int>(std::launch::async) | static_cast<int>(std::launch::deferred)), ""); 25 static_assert(static_cast<int>(std::launch::async) == 1, ""); 26 static_assert(static_cast<int>(std::launch::deferred) == 2, ""); 27 } 28