Commit ad632e98 by Nathan Froyd Committed by Nathan Froyd

re PR testsuite/46860 (New libstdc++ failures)

	PR testsuite/46860
	* testsuite/20_util/auto_ptr/assign_neg.cc: Adjust.
	* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Adjust.
	* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust.

From-SVN: r167625
parent b6710d1a
2010-12-08 Nathan Froyd <froydnj@codesourcery.com>
PR testsuite/46860
* testsuite/20_util/auto_ptr/assign_neg.cc: Adjust.
* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Adjust.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust.
2010-12-08 Paolo Carlini <paolo.carlini@oracle.com> 2010-12-08 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/bitset (_Base_bitset<>::_Base_bitset(), * include/std/bitset (_Base_bitset<>::_Base_bitset(),
......
...@@ -37,6 +37,7 @@ test01() ...@@ -37,6 +37,7 @@ test01()
{ {
std::auto_ptr<Base> ptr2; std::auto_ptr<Base> ptr2;
ptr2 = new Base; // { dg-error "no match" } ptr2 = new Base; // { dg-error "no match" }
// { dg-error "candidate" "candidate note" { target *-*-* } 39 }
return 0; return 0;
} }
...@@ -46,6 +47,6 @@ main() ...@@ -46,6 +47,6 @@ main()
test01(); test01();
return 0; return 0;
} }
// { dg-error "candidates" "" { target *-*-* } 134 } // { dg-error "::auto_ptr|no known conversion" "" { target *-*-* } 134 }
// { dg-error "note" "" { target *-*-* } 152 } // { dg-error "note" "" { target *-*-* } 152 }
// { dg-error "::auto_ptr" "" { target *-*-* } 262 } // { dg-error "::auto_ptr|no known conversion" "" { target *-*-* } 262 }
...@@ -46,6 +46,7 @@ void ...@@ -46,6 +46,7 @@ void
test03() test03()
{ {
std::unique_ptr<int[2]> p1(new int[3]); // { dg-error "no match" } std::unique_ptr<int[2]> p1(new int[3]); // { dg-error "no match" }
// { dg-error "candidate" "candidate-note" { target *-*-* } 48 }
std::unique_ptr<int[2]> p2 = p1; // { dg-error "deleted" } std::unique_ptr<int[2]> p2 = p1; // { dg-error "deleted" }
} }
......
...@@ -31,6 +31,7 @@ test01() ...@@ -31,6 +31,7 @@ test01()
{ {
std::weak_ptr<A> p1; std::weak_ptr<A> p1;
p1 < p1; // { dg-error "no match" } p1 < p1; // { dg-error "no match" }
// { dg-error "candidate" "candidate note" { target *-*-* } 33 }
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment