summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/futures/futures.async/async.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-24 04:34:33 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-24 04:34:33 +0000
commitdee07a6a9fa17ae15dc34e1f31310a7c2dbfc30f (patch)
tree638fce9739695b2b35d63039465b5a2ad37411cb /libcxx/test/std/thread/futures/futures.async/async.pass.cpp
parent2c3fb80b23780b0552b676fde29e20ba6d8db228 (diff)
downloadbcm5719-llvm-dee07a6a9fa17ae15dc34e1f31310a7c2dbfc30f.tar.gz
bcm5719-llvm-dee07a6a9fa17ae15dc34e1f31310a7c2dbfc30f.zip
Enable -Wunreachable-code and fix duplicate warning flags
llvm-svn: 290486
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.cpp3
1 files changed, 2 insertions, 1 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 0f5ee05e9a0..9adebb28511 100644
--- a/libcxx/test/std/thread/futures/futures.async/async.pass.cpp
+++ b/libcxx/test/std/thread/futures/futures.async/async.pass.cpp
@@ -72,7 +72,8 @@ std::unique_ptr<int> f4(std::unique_ptr<int>&& p)
void f5(int j)
{
std::this_thread::sleep_for(ms(200));
- TEST_THROW(j); ((void)j);
+ ((void)j);
+ TEST_THROW(j);
}
template <class Ret, class CheckLamdba, class ...Args>
OpenPOWER on IntegriCloud