mark XFAIL where appropriate

From-SVN: r22819
This commit is contained in:
Alexandre Oliva 1998-10-04 15:44:37 +00:00
parent 00f1494939
commit 710afba434
3 changed files with 9 additions and 5 deletions

View File

@ -3,7 +3,7 @@
class Outer { class Outer {
typedef int T; typedef int T;
class Inner { struct Inner {
T i; // ERROR - not accessible - XFAIL *-*-* T i; // ERROR - not accessible - XFAIL *-*-*
void f() { void f() {
T j; // ERROR - not accessible - XFAIL *-*-* T j; // ERROR - not accessible - XFAIL *-*-*

View File

@ -1,12 +1,14 @@
// Build don't link: // Build don't link:
// crash test - XFAIL *-*-*
template <class T> void foo(T); template <class T> void foo(T);
template <class T> void bar(void (*)(T), T); template <class T> void bar(void (*)(T), T);
void baz() { void baz() {
bar<int>(foo, 1); bar<int>(foo, 1);
bar(foo<int>, 1); // explicit args for foo don't help - XFAIL *-*-* bar(foo<int>, 1); // explicit args for foo don't help
bar<int>(foo<int>, 1); // not even here - XFAIL *-*-* bar<int>(foo<int>, 1); // not even here
bar(foo, 1); // ICE - XFAIL *-*-* bar(foo, 1);
} }

View File

@ -1,6 +1,8 @@
// Build don't link: // Build don't link:
// crash test - XFAIL *-*-*
template <class T> void foo(); template <class T> void foo();
void (*bar)() = foo<void>; void (*bar)() = foo<void>;
void (*baz)() = foo; // ERROR - can't deduce T - XFAIL *-*-* void (*baz)() = foo; // ERROR - can't deduce T