//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // class promise // promise(); #include #include int main() { { std::promise p; std::future f = p.get_future(); assert(f.valid()); } { std::promise p; std::future f = p.get_future(); assert(f.valid()); } { std::promise p; std::future f = p.get_future(); assert(f.valid()); } }