summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/futures/futures.async/async.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-04-30 02:30:18 +0000
committerEric Fiselier <eric@efcs.ca>2016-04-30 02:30:18 +0000
commit53ca3c93dba54ce83bc5df5400aaa07cdbaeff1c (patch)
tree39985cbc7bb0e794497967047b036b6b025d23c7 /libcxx/test/std/thread/futures/futures.async/async.pass.cpp
parent17e9754dd476f7f317f2a62f50c37da35fb0c5bd (diff)
downloadbcm5719-llvm-53ca3c93dba54ce83bc5df5400aaa07cdbaeff1c.tar.gz
bcm5719-llvm-53ca3c93dba54ce83bc5df5400aaa07cdbaeff1c.zip
Replace one more occurrence of non-standard std:launch::any. Patch from STL@microsoft.com
llvm-svn: 268153
Diffstat (limited to 'libcxx/test/std/thread/futures/futures.async/async.pass.cpp')
-rw-r--r--libcxx/test/std/thread/futures/futures.async/async.pass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/thread/futures/futures.async/async.pass.cpp b/libcxx/test/std/thread/futures/futures.async/async.pass.cpp
index 20c16e79821..5cb824d4822 100644
--- a/libcxx/test/std/thread/futures/futures.async/async.pass.cpp
+++ b/libcxx/test/std/thread/futures/futures.async/async.pass.cpp
@@ -132,7 +132,7 @@ int main()
test<void>(checkVoid, DPID, f2);
test<void>(checkVoid, false, std::launch::async, f2);
test<void>(checkVoid, true, std::launch::deferred, f2);
- test<void>(checkVoid, DPID, std::launch::any, f2);
+ test<void>(checkVoid, DPID, AnyPolicy, f2);
}
{
using Ret = std::unique_ptr<int>;
@@ -143,11 +143,11 @@ int main()
{
std::future<void> f = std::async(f5, 3);
std::this_thread::sleep_for(ms(300));
- try { f.get(); assert (false); } catch ( int ex ) {}
+ try { f.get(); assert (false); } catch ( int ) {}
}
{
std::future<void> f = std::async(std::launch::deferred, f5, 3);
std::this_thread::sleep_for(ms(300));
- try { f.get(); assert (false); } catch ( int ex ) {}
+ try { f.get(); assert (false); } catch ( int ) {}
}
}
OpenPOWER on IntegriCloud