diff options
Diffstat (limited to 'libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp')
-rw-r--r-- | libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp | 6 |
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)>')}} } |