brintos

brintos / llvm-project-archived public Read only

0
0
Text · 275 B · 5500b33 Raw
12 lines · c
1// RUN: %clang_cc1 %s -verify -fsyntax-only -std=c902 3struct S {4  int v;5};6 7struct T; // expected-note {{forward declaration of 'struct T'}}8 9void gh88008_nocrash(struct T *t) {10  struct S s = { .v = t->y }; // expected-error {{incomplete definition of type 'struct T'}}11}12