diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/CodeGenCXX/invalid.cpp | |
parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) |
Diffstat (limited to 'test/CodeGenCXX/invalid.cpp')
-rw-r--r-- | test/CodeGenCXX/invalid.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/invalid.cpp b/test/CodeGenCXX/invalid.cpp new file mode 100644 index 000000000000..d3462465809d --- /dev/null +++ b/test/CodeGenCXX/invalid.cpp @@ -0,0 +1,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; |