| 1 |
/* Test for ICE when using typedef for bad type. */ |
| 2 |
/* Origin: Joseph Myers <[email protected]>. */ |
| 3 |
/* { dg-options "-std=gnu89" } */ |
| 4 |
|
| 5 |
void |
| 6 |
foo (void) |
| 7 |
{ |
| 8 |
typedef int t[x]; /* { dg-error "undeclared|function" "x undeclared" } */ |
| 9 |
t bar; |
| 10 |
} |