Home | History | Annotate | Download | only in futures.overview
      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 // UNSUPPORTED: libcpp-has-no-threads
     11 
     12 // <future>
     13 
     14 // enum class future_status
     15 // {
     16 //     ready,
     17 //     timeout,
     18 //     deferred
     19 // };
     20 
     21 #include <future>
     22 
     23 int main()
     24 {
     25     static_assert(static_cast<int>(std::future_status::ready) == 0, "");
     26     static_assert(static_cast<int>(std::future_status::timeout) == 1, "");
     27     static_assert(static_cast<int>(std::future_status::deferred) == 2, "");
     28 }
     29