[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / namelookup-anonymous-struct.c
blobcb691c22f97ffd63ef0409670b76b85cc042629e
1 // RUN: %clang_cc1 -std=c11 -verify %s
3 struct GH31295 {
4 struct { int x; };
5 int arr[sizeof(x)]; // expected-error{{use of undeclared identifier 'x'}}
6 };