* testsuite/23_containers/set_operators.cc: Just try to compile.
Mark as XFAIL.
* testsuite/23_containers/map_operators.cc: Same.
From-SVN: r41318
+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
// 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;
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
// map and set
// libstdc++/86: map & set iterator comparisons are not type-safe
+
+// { dg-do compile }
+
int main(void)
{
bool test = true;
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;
}