diff options
Diffstat (limited to 'test/std/thread/futures/futures.unique_future/default.pass.cpp')
| -rw-r--r-- | test/std/thread/futures/futures.unique_future/default.pass.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/std/thread/futures/futures.unique_future/default.pass.cpp b/test/std/thread/futures/futures.unique_future/default.pass.cpp new file mode 100644 index 000000000000..84cb84650dcd --- /dev/null +++ b/test/std/thread/futures/futures.unique_future/default.pass.cpp @@ -0,0 +1,35 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// UNSUPPORTED: libcpp-has-no-threads + +// <future> + +// class future<R> + +// future(); + +#include <future> +#include <cassert> + +int main() +{ + { + std::future<int> f; + assert(!f.valid()); + } + { + std::future<int&> f; + assert(!f.valid()); + } + { + std::future<void> f; + assert(!f.valid()); + } +} |
