summaryrefslogtreecommitdiffstats
path: root/test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-05-25 22:36:09 -0700
committerDan Albert <danalbert@google.com>2016-05-25 22:36:09 -0700
commit1d4a1edbc7e4461b59239e1b8297e9dd395a6322 (patch)
treecbe3ea215f179ead1a25b156590da0538a1e7fd7 /test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp
parentc004fd909c006eec55077c52ee119e1fa338c9e9 (diff)
downloadexternal_libcxx-1d4a1edbc7e4461b59239e1b8297e9dd395a6322.tar.gz
external_libcxx-1d4a1edbc7e4461b59239e1b8297e9dd395a6322.tar.bz2
external_libcxx-1d4a1edbc7e4461b59239e1b8297e9dd395a6322.zip
Revert "Update aosp/master libcxx rebase to r263688"
The world is burning. This reverts commit c004fd909c006eec55077c52ee119e1fa338c9e9, reversing changes made to 1418e4163da4bb0b9e3fe496e51c23a0dce399d9.
Diffstat (limited to 'test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp')
-rw-r--r--test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp b/test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp
index c0fe2ef88..70a4e00b0 100644
--- a/test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp
+++ b/test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp
@@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
-// UNSUPPORTED: c++98, c++03
// <future>
@@ -20,36 +19,36 @@
#include <future>
#include <cassert>
-#include "test_allocator.h"
+#include "../test_allocator.h"
#include "min_allocator.h"
int main()
{
- assert(test_alloc_base::alloc_count == 0);
+ assert(test_alloc_base::count == 0);
{
- std::promise<int> p(std::allocator_arg, test_allocator<int>(42));
- assert(test_alloc_base::alloc_count == 1);
+ std::promise<int> p(std::allocator_arg, test_allocator<int>());
+ assert(test_alloc_base::count == 1);
std::future<int> f = p.get_future();
- assert(test_alloc_base::alloc_count == 1);
+ assert(test_alloc_base::count == 1);
assert(f.valid());
}
- assert(test_alloc_base::alloc_count == 0);
+ assert(test_alloc_base::count == 0);
{
- std::promise<int&> p(std::allocator_arg, test_allocator<int>(42));
- assert(test_alloc_base::alloc_count == 1);
+ std::promise<int&> p(std::allocator_arg, test_allocator<int>());
+ assert(test_alloc_base::count == 1);
std::future<int&> f = p.get_future();
- assert(test_alloc_base::alloc_count == 1);
+ assert(test_alloc_base::count == 1);
assert(f.valid());
}
- assert(test_alloc_base::alloc_count == 0);
+ assert(test_alloc_base::count == 0);
{
- std::promise<void> p(std::allocator_arg, test_allocator<void>(42));
- assert(test_alloc_base::alloc_count == 1);
+ std::promise<void> p(std::allocator_arg, test_allocator<void>());
+ assert(test_alloc_base::count == 1);
std::future<void> f = p.get_future();
- assert(test_alloc_base::alloc_count == 1);
+ assert(test_alloc_base::count == 1);
assert(f.valid());
}
- assert(test_alloc_base::alloc_count == 0);
+ assert(test_alloc_base::count == 0);
// Test with a minimal allocator
{
std::promise<int> p(std::allocator_arg, bare_allocator<void>());