From: gdr Date: Fri, 13 Apr 2001 02:14:11 +0000 (+0000) Subject: * testsuite/23_containers/set_operators.cc: Just try to compile. X-Git-Tag: upstream/4.9.2~94904 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32f149e1b4bf2b034613f1ab5f97123e6a27e5e8;p=platform%2Fupstream%2Flinaro-gcc.git * testsuite/23_containers/set_operators.cc: Just try to compile. Mark as XFAIL. * testsuite/23_containers/map_operators.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41318 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c44e9c4..22aae1f 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 c44cfac..057c993 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 e9bbc62..19f1bc4 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; }