Commit 68f378af by Jonathan Wakely Committed by Jonathan Wakely

re PR libstdc++/46689 (FAIL: 20_util/shared_ptr/comparison/cmp.cc)

2010-11-28  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/46689
	* testsuite/20_util/shared_ptr/comparison/cmp.cc: Remove tests for
	invalid comparisons.

From-SVN: r167217
parent ad97acdf
2010-11-28 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/46689
* testsuite/20_util/shared_ptr/comparison/cmp.cc: Remove tests for
invalid comparisons.
2010-11-27 Jonathan Wakely <jwakely.gcc@gmail.com> 2010-11-27 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/shared_ptr_base.h (operator>, operator>=, operator<=): * include/bits/shared_ptr_base.h (operator>, operator>=, operator<=):
......
...@@ -79,26 +79,10 @@ test02() ...@@ -79,26 +79,10 @@ test02()
return 0; return 0;
} }
int
test03()
{
bool test __attribute__((unused)) = true;
std::shared_ptr<A> p1;
// check other operators are defined
VERIFY( p1 <= p1 );
VERIFY( p1 >= p1 );
VERIFY( !(p1 > p1) );
return 0;
}
int int
main() main()
{ {
test01(); test01();
test02(); test02();
test03();
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