Commit d72274e4 by Gabriel Dos Reis Committed by Gabriel Dos Reis

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
parent 4bd34c39
2001-04-13 Gabriel Dos Reis <gdr@codesourcery.com>
* 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 <jason_merrill@redhat.com> 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Prepend "./" to * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Prepend "./" to
......
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
// map and set // map and set
// libstdc++/86: map & set iterator comparisons are not type-safe // libstdc++/86: map & set iterator comparisons are not type-safe
// XXX this is XFAIL for the time being, ie this should not compile // XXX this is XFAIL for the time being, ie this should not compile
// Just try to compile
// { dg-do compile }
void test01() void test01()
{ {
bool test = true; bool test = true;
...@@ -39,8 +43,8 @@ void test01() ...@@ -39,8 +43,8 @@ void test01()
std::map<unsigned, int>::iterator itr(mapByIndex.begin()); std::map<unsigned, int>::iterator itr(mapByIndex.begin());
// NB: notice, it's not mapByIndex!! // NB: notice, it's not mapByIndex!!
test &= itr != mapByName.end(); // ERROR - * XFAIL *-*-* test &= itr != mapByName.end(); // { dg-error ".*" "" { xfail *-*-* } }
test &= itr == mapByName.end(); // ERROR - * XFAIL *-*-* test &= itr == mapByName.end(); // { dg-error ".*" "" { xfail *-*-* } }
} }
// http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html // http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
// map and set // map and set
// libstdc++/86: map & set iterator comparisons are not type-safe // libstdc++/86: map & set iterator comparisons are not type-safe
// { dg-do compile }
int main(void) int main(void)
{ {
bool test = true; bool test = true;
...@@ -35,8 +38,8 @@ int main(void) ...@@ -35,8 +38,8 @@ int main(void)
std::set<unsigned int>::iterator itr(setByIndex.begin()); std::set<unsigned int>::iterator itr(setByIndex.begin());
// NB: it's not setByIndex!! // NB: it's not setByIndex!!
test &= itr != setByName.end(); // ERROR - * XFAIL *-*-* test &= itr != setByName.end(); // { dg-error ".*" "" { xfail *-*-* } }
test &= itr == setByName.end(); // ERROR - * XFAIL *-*-* test &= itr == setByName.end(); // { dg-error ".*" "" { xfail *-*-* } }
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