summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-28 01:32:57 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-28 01:32:57 +0000
commitf61b7205e8cfac30356b34d623dac3cba29175b8 (patch)
treefd720f32746eb7936800af3b1df78e688fdea8d9
parent7bb55d4d1b09c95683f64fbe590f8ec2366b0aa3 (diff)
downloadgcc-f61b7205e8cfac30356b34d623dac3cba29175b8.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167217 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp.cc16
2 files changed, 6 insertions, 16 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 1c0965a18cc..601fd40e2cd 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+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>
* include/bits/shared_ptr_base.h (operator>, operator>=, operator<=):
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp.cc
index 9991fa761bc..ba828071603 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp.cc
@@ -79,26 +79,10 @@ test02()
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
main()
{
test01();
test02();
- test03();
return 0;
}