| 1 |
/* Both occurrences of "c" should get diagnostics. PR 12391. */ |
| 2 |
typedef struct { int a; } b_t; |
| 3 |
|
| 4 |
int foo (void) |
| 5 |
{ |
| 6 |
b_t d; |
| 7 |
struct b_t *c = &d; /* { dg-error "incompatible pointer type" } */ |
| 8 |
c->a; /* { dg-error "invalid use of undefined type" } */ |
| 9 |
} |