From a131cf78adfb5c3cbbdb6fb8cc7f8bcb8bd5f9f3 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Tue, 2 Jan 2007 11:53:52 +0000 Subject: PR1068 - Unbounded array debug info. llvm-svn: 32818 --- llvm/test/DebugInfo/2007-01-02-UnboundedArray.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 llvm/test/DebugInfo/2007-01-02-UnboundedArray.cpp (limited to 'llvm/test/DebugInfo/2007-01-02-UnboundedArray.cpp') 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; +} -- cgit v1.2.3