
Use refactored `CheckForConstantInitializer()` to skip checking expr with error. --------- Co-authored-by: Aaron Ballman <aaron@aaronballman.com>
12 lines
275 B
C
12 lines
275 B
C
// RUN: %clang_cc1 %s -verify -fsyntax-only -std=c90
|
|
|
|
struct S {
|
|
int v;
|
|
};
|
|
|
|
struct T; // expected-note {{forward declaration of 'struct T'}}
|
|
|
|
void gh88008_nocrash(struct T *t) {
|
|
struct S s = { .v = t->y }; // expected-error {{incomplete definition of type 'struct T'}}
|
|
}
|