Commit f004c66b by Martin v. Löwis

Mark failing code as XFAIL

From-SVN: r25387
parent 8be64d09
...@@ -7,18 +7,18 @@ ...@@ -7,18 +7,18 @@
// [except.spec] 1, a type in an exception specifier shall not be incomplete, // [except.spec] 1, a type in an exception specifier shall not be incomplete,
// or pointer or ref to incomplete // or pointer or ref to incomplete
struct X; // ERROR - forward declaration struct X; // ERROR - forward declaration - XFAIL
void fn1() throw(X); // ERROR - incomplete type void fn1() throw(X); // ERROR - incomplete type - XFAIL
void fn2() throw(X *); // ERROR - incomplete type void fn2() throw(X *); // ERROR - incomplete type - XFAIL
void fn3() throw(X &); // ERROR - incomplete type void fn3() throw(X &); // ERROR - incomplete type - XFAIL
void fn4() throw(void); // ERROR - incomplete type void fn4() throw(void); // ERROR - incomplete type - XFAIL
// except for cv pointer to void // except for cv pointer to void
void fn5() throw(void *); void fn5() throw(void *);
// [except.spec] 2, exception specifiers must be the same set of types (but // [except.spec] 2, exception specifiers must be the same set of types (but
// can be reordered) // can be reordered)
void fn() throw(int, char); void fn() throw(int, char); // gets bogus error - XFAIL
void fn() throw(char, int){} void fn() throw(char, int){} // gets bogus error - ordering is irrelevant - XFAIL
// [except.spec] 3, virtual function overriders shall throw a subset of the // [except.spec] 3, virtual function overriders shall throw a subset of the
// overridden function // overridden function
...@@ -35,12 +35,12 @@ struct A ...@@ -35,12 +35,12 @@ struct A
struct B : A struct B : A
{ {
virtual void foo() throw(int); // ERROR - not in base function virtual void foo() throw(int); // ERROR - not in base function - XFAIL
virtual void baz() throw(double); virtual void baz() throw(double);
virtual void bar(int) throw(int); virtual void bar(int) throw(int);
virtual void qux() throw(F); virtual void qux() throw(F);
virtual void quux() throw(E); // ERROR - not in base function virtual void quux() throw(E); // ERROR - not in base function - XFAIL
}; };
// [except.spec] 5, types shall not be defined in exception specifiers // [except.spec] 5, types shall not be defined in exception specifiers
void fn6() throw(struct Z {}); // ERROR - types shall not be defined void fn6() throw(struct Z {}); // ERROR - types shall not be defined - XFAIL
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