r188836 - Test case for PR16933/r188707.

David Blaikie dblaikie at gmail.com
Tue Aug 20 15:01:45 PDT 2013


Author: dblaikie
Date: Tue Aug 20 17:01:44 2013
New Revision: 188836

URL: http://llvm.org/viewvc/llvm-project?rev=188836&view=rev
Log:
Test case for PR16933/r188707.

Added:
    cfe/trunk/test/CodeGenCXX/invalid.cpp

Added: cfe/trunk/test/CodeGenCXX/invalid.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/invalid.cpp?rev=188836&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/invalid.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/invalid.cpp Tue Aug 20 17:01:44 2013
@@ -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;





More information about the cfe-commits mailing list