diff options
author | Jason Merrill <jason@redhat.com> | 2010-06-29 20:51:13 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-06-29 20:51:13 -0400 |
commit | 9a71b305bf556ad173b123d2d58612652b82e6dc (patch) | |
tree | 2bc73889c856176b1bd79beac62f6c6af63acf4b /libstdc++-v3/testsuite/30_threads/thread/cons | |
parent | ac1774315cb7ebc781ade2f9fd99de1c258b9221 (diff) | |
download | gcc-9a71b305bf556ad173b123d2d58612652b82e6dc.tar.gz |
* decl2.c (mark_used): Adjust error for use of deleted function.
From-SVN: r161580
Diffstat (limited to 'libstdc++-v3/testsuite/30_threads/thread/cons')
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/thread/cons/assign_neg.cc | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc | 12 |
2 files changed, 10 insertions, 7 deletions
diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/assign_neg.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/assign_neg.cc index 11705794ac9..406d16085a3 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/assign_neg.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/assign_neg.cc @@ -28,8 +28,7 @@ void test01() typedef std::thread test_type; test_type t1; test_type t2; - t1 = t2; + t1 = t2; // { dg-error "deleted" } } -// { dg-error "used here" "" { target *-*-* } 31 } -// { dg-error "deleted function" "" { target *-*-* } 148 } +// { dg-prune-output "include" } 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 898ad16350f..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 *-*-* } 126 } -// { 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" } |