summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/invalid.cpp
blob: d3462465809d5697630fe1496693011fb8ca2c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: not %clang_cc1 -g -emit-llvm %s

// Don't attempt to codegen invalid code that would lead to a crash

// PR16933
struct A;
A *x;
struct A {
  B y;
};
A y;