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
This commit is contained in:
Gabriel Dos Reis 2001-04-13 02:14:11 +00:00 committed by Gabriel Dos Reis
parent 4bd34c3985
commit d72274e411
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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>
* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Prepend "./" to

View File

@ -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<unsigned, int>::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

View File

@ -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<unsigned int>::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;
}