2010-09-03 23:46:37 +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-09-03 23:46:37 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <future>
|
|
|
|
|
|
|
|
// class atomic_future<R>
|
|
|
|
|
|
|
|
// atomic_future();
|
|
|
|
|
|
|
|
#include <future>
|
|
|
|
#include <cassert>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::atomic_future<int> f;
|
|
|
|
assert(!f.valid());
|
|
|
|
}
|
|
|
|
{
|
|
|
|
std::atomic_future<int&> f;
|
|
|
|
assert(!f.valid());
|
|
|
|
}
|
|
|
|
{
|
|
|
|
std::atomic_future<void> f;
|
|
|
|
assert(!f.valid());
|
|
|
|
}
|
|
|
|
}
|