summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-01-02 11:53:52 +0000
committerJim Laskey <jlaskey@mac.com>2007-01-02 11:53:52 +0000
commita131cf78adfb5c3cbbdb6fb8cc7f8bcb8bd5f9f3 (patch)
treec82390c9499f952dd753b64eda31b59c69c761a5
parent03c80e72d19a77d37eb8a3e435fa9dae06eac61b (diff)
downloadbcm5719-llvm-a131cf78adfb5c3cbbdb6fb8cc7f8bcb8bd5f9f3.tar.gz
bcm5719-llvm-a131cf78adfb5c3cbbdb6fb8cc7f8bcb8bd5f9f3.zip
PR1068 - Unbounded array debug info.
llvm-svn: 32818
-rw-r--r--llvm/test/DebugInfo/2007-01-02-UnboundedArray.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/2007-01-02-UnboundedArray.cpp b/llvm/test/DebugInfo/2007-01-02-UnboundedArray.cpp
new file mode 100644
index 00000000000..648d19be62b
--- /dev/null
+++ b/llvm/test/DebugInfo/2007-01-02-UnboundedArray.cpp
@@ -0,0 +1,14 @@
+// Make sure unbounded arrays compile with debug information.
+//
+// RUN: %llvmgcc -O0 -c -g %s
+
+// PR1068
+
+struct Object {
+ char buffer[];
+};
+
+int main(int argc, char** argv) {
+ new Object;
+ return 0;
+}
OpenPOWER on IntegriCloud