[cfe-commits] r138138 - /cfe/trunk/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp
Eric Christopher
echristo at apple.com
Fri Aug 19 16:15:05 PDT 2011
Author: echristo
Date: Fri Aug 19 18:15:04 2011
New Revision: 138138
URL: http://llvm.org/viewvc/llvm-project?rev=138138&view=rev
Log:
Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++.
Added:
cfe/trunk/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp
Added: cfe/trunk/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp?rev=138138&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp Fri Aug 19 18:15:04 2011
@@ -0,0 +1,14 @@
+// Make sure unbounded arrays compile with debug information.
+//
+// RUN: %clang_cc1 -emit-llvm -g %s -o -
+
+// PR1068
+
+struct Object {
+ char buffer[];
+};
+
+int main(int argc, char** argv) {
+ new Object;
+ return 0;
+}
More information about the cfe-commits
mailing list