[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / recover-expr-gh88008-nocrash.c
blob5500b33dd0e85da6d35df9029d9bf5a4cd8412ec
1 // RUN: %clang_cc1 %s -verify -fsyntax-only -std=c90
3 struct S {
4 int v;
5 };
7 struct T; // expected-note {{forward declaration of 'struct T'}}
9 void gh88008_nocrash(struct T *t) {
10 struct S s = { .v = t->y }; // expected-error {{incomplete definition of type 'struct T'}}