2010-08-29 16:20:30 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2010-11-16 23:09:02 +01:00
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
2010-08-29 16:20:30 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <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());
|
|
|
|
}
|
|
|
|
}
|