summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-08-19 23:15:04 +0000
committerEric Christopher <echristo@apple.com>2011-08-19 23:15:04 +0000
commita8cd70e21af5ab1e56ed8020a2aefff5951dd54a (patch)
treec54bc2098891218811baa1cefb35c6af83c32782 /clang
parent8d77bb5f06129fe0f0c19e41400a7fd6ce2f2069 (diff)
downloadbcm5719-llvm-a8cd70e21af5ab1e56ed8020a2aefff5951dd54a.tar.gz
bcm5719-llvm-a8cd70e21af5ab1e56ed8020a2aefff5951dd54a.zip
Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++.
llvm-svn: 138138
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp b/clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp
new file mode 100644
index 00000000000..0cd83fa7ed4
--- /dev/null
+++ b/clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp
@@ -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;
+}
OpenPOWER on IntegriCloud