mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 18:57:49 +08:00
mark XFAIL where appropriate
From-SVN: r22819
This commit is contained in:
parent
00f1494939
commit
710afba434
@ -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 *-*-*
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user