diff options
Diffstat (limited to 'libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc')
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc index ce5034bf502..db06e72b0f3 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc @@ -27,9 +27,13 @@ void test01() // copy typedef std::thread test_type; test_type t1; - test_type t2(t1); // XXX this is failing for the wrong reason + test_type t2(t1); // { dg-error "deleted" "" { xfail *-*-* } } } -// { dg-error "here" "" { target *-*-* } 30 } -// { dg-error "deleted function" "" { target *-*-* } 127 } -// { dg-excess-errors "In file included from" } +// This is failing for the wrong reason; it should fail because we're +// trying to call the deleted copy constructor, but instead it fails +// because we try to call the thread(_Callable&&,_Args&&...) constructor +// and fail because thread isn't callable. But that's OK for now. +// { dg-error "" "" { target *-*-* } 30 } + +// { dg-prune-output "include" } |