xref: /aosp_15_r20/external/clang/test/CodeGenCXX/invalid.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: not %clang_cc1 -g -emit-llvm %s
2 
3 // Don't attempt to codegen invalid code that would lead to a crash
4 
5 // PR16933
6 struct A;
7 A *x;
8 struct A {
9   B y;
10 };
11 A y;
12