From 4262748e0f67efad356cb71dd2579a6e87056831 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 8 Dec 2016 10:02:04 +0000 Subject: [PATCH] Add more test cases to packaged_task copyability test llvm-svn: 289034 --- .../thread/futures/futures.task/futures.task.members/ctor1.fail.cpp | 6 ++++-- 1 file 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 8882fd1..9d1ad61 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 VPT; int main() { VPT init{}; - PT p{init}; // expected-error {{no matching constructor for initialization of 'PT' (aka 'packaged_task')}} - // 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')}} } -- 2.7.4