From d72274e4114a0c3e930600ea87143f609ba25fd6 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Fri, 13 Apr 2001 02:14:11 +0000 Subject: [PATCH] set_operators.cc: Just try to compile. * testsuite/23_containers/set_operators.cc: Just try to compile. Mark as XFAIL. * testsuite/23_containers/map_operators.cc: Same. From-SVN: r41318 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/testsuite/23_containers/map_operators.cc | 8 ++++++-- libstdc++-v3/testsuite/23_containers/set_operators.cc | 7 +++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c44e9c40ac5..22aae1fc355 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2001-04-13 Gabriel Dos Reis + + * testsuite/23_containers/set_operators.cc: Just try to compile. + Mark as XFAIL. + * testsuite/23_containers/map_operators.cc: Same. + 2001-04-12 Jason Merrill * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Prepend "./" to diff --git a/libstdc++-v3/testsuite/23_containers/map_operators.cc b/libstdc++-v3/testsuite/23_containers/map_operators.cc index c44cfacb3e4..057c993df31 100644 --- a/libstdc++-v3/testsuite/23_containers/map_operators.cc +++ b/libstdc++-v3/testsuite/23_containers/map_operators.cc @@ -27,6 +27,10 @@ // map and set // libstdc++/86: map & set iterator comparisons are not type-safe // XXX this is XFAIL for the time being, ie this should not compile + +// Just try to compile +// { dg-do compile } + void test01() { bool test = true; @@ -39,8 +43,8 @@ void test01() std::map::iterator itr(mapByIndex.begin()); // NB: notice, it's not mapByIndex!! - test &= itr != mapByName.end(); // ERROR - * XFAIL *-*-* - test &= itr == mapByName.end(); // ERROR - * XFAIL *-*-* + test &= itr != mapByName.end(); // { dg-error ".*" "" { xfail *-*-* } } + test &= itr == mapByName.end(); // { dg-error ".*" "" { xfail *-*-* } } } // http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html diff --git a/libstdc++-v3/testsuite/23_containers/set_operators.cc b/libstdc++-v3/testsuite/23_containers/set_operators.cc index e9bbc621c12..19f1bc4a0db 100644 --- a/libstdc++-v3/testsuite/23_containers/set_operators.cc +++ b/libstdc++-v3/testsuite/23_containers/set_operators.cc @@ -25,6 +25,9 @@ // map and set // libstdc++/86: map & set iterator comparisons are not type-safe + +// { dg-do compile } + int main(void) { bool test = true; @@ -35,8 +38,8 @@ int main(void) std::set::iterator itr(setByIndex.begin()); // NB: it's not setByIndex!! - test &= itr != setByName.end(); // ERROR - * XFAIL *-*-* - test &= itr == setByName.end(); // ERROR - * XFAIL *-*-* + test &= itr != setByName.end(); // { dg-error ".*" "" { xfail *-*-* } } + test &= itr == setByName.end(); // { dg-error ".*" "" { xfail *-*-* } } return 0; } -- 2.30.2