]> granicus.if.org Git - clang/commitdiff
Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++.
authorEric Christopher <echristo@apple.com>
Fri, 19 Aug 2011 23:15:04 +0000 (23:15 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 19 Aug 2011 23:15:04 +0000 (23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138138 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/2007-01-02-UnboundedArray.cpp [new file with mode: 0644]

diff --git a/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp b/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp
new file mode 100644 (file)
index 0000000..0cd83fa
--- /dev/null
@@ -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;
+}