[libcxx] r289034 - Add more test cases to packaged_task copyability test
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 8 02:02:05 PST 2016
Author: ericwf
Date: Thu Dec 8 04:02:04 2016
New Revision: 289034
URL: http://llvm.org/viewvc/llvm-project?rev=289034&view=rev
Log:
Add more test cases to packaged_task copyability test
Modified:
libcxx/trunk/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp
Modified: libcxx/trunk/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp?rev=289034&r1=289033&r2=289034&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp (original)
+++ libcxx/trunk/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp Thu Dec 8 04:02:04 2016
@@ -29,6 +29,8 @@ typedef volatile std::packaged_task<A(in
int main()
{
VPT init{};
- PT p{init}; // expected-error {{no matching constructor for initialization of 'PT' (aka 'packaged_task<A (int, char)>')}}
- // expected-note at 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)>')}}
}
More information about the cfe-commits
mailing list