| 1 |
// RUN: %clang_cc1 %s -verify -fsyntax-only -std=c90 |
| 2 |
|
| 3 |
struct S { |
| 4 |
int v; |
| 5 |
}; |
| 6 |
|
| 7 |
struct T; // expected-note {{forward declaration of 'struct T'}} |
| 8 |
|
| 9 |
void gh88008_nocrash(struct T *t) { |
| 10 |
struct S s = { .v = t->y }; // expected-error {{incomplete definition of type 'struct T'}} |
| 11 |
} |