summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-08 10:02:04 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-08 10:02:04 +0000
commit4262748e0f67efad356cb71dd2579a6e87056831 (patch)
treed13cad7b29a0427b01ca4f033b9da0536a8934b6
parent009259da8a71daff186522c31f25756ab41003ce (diff)
downloadbcm5719-llvm-4262748e0f67efad356cb71dd2579a6e87056831.tar.gz
bcm5719-llvm-4262748e0f67efad356cb71dd2579a6e87056831.zip
Add more test cases to packaged_task copyability test
llvm-svn: 289034
-rw-r--r--libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp b/libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp
index 8882fd1f158..9d1ad61cef6 100644
--- a/libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp
+++ b/libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp
@@ -29,6 +29,8 @@ typedef volatile std::packaged_task<A(int, char)> VPT;
int main()
{
VPT init{};
- PT p{init}; // expected-error {{no matching constructor for initialization of 'PT' (aka 'packaged_task<A (int, char)>')}}
- // expected-note@future:* 1 {{candidate template ignored: disabled by 'enable_if'}}
+ auto const& c_init = init;
+ PT p1{init}; // expected-error {{no matching constructor}}
+ PT p2{c_init}; // expected-error {{no matching constructor}}
+ PT p3{std::move(init)}; // expected-error {{no matching constructor for initialization of 'PT' (aka 'packaged_task<A (int, char)>')}}
}
OpenPOWER on IntegriCloud