diff options
author | Jim Laskey <jlaskey@mac.com> | 2007-01-02 11:53:52 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2007-01-02 11:53:52 +0000 |
commit | cb69b2f0dc68a20703bc9a6f0ece28ca8188b9aa (patch) | |
tree | c43028d645a6186ab422cc7626918f17dc37a783 /test | |
parent | 7356ae40159e454479cde1ad2a7231c1ac5a4fa4 (diff) | |
download | external_llvm-cb69b2f0dc68a20703bc9a6f0ece28ca8188b9aa.zip external_llvm-cb69b2f0dc68a20703bc9a6f0ece28ca8188b9aa.tar.gz external_llvm-cb69b2f0dc68a20703bc9a6f0ece28ca8188b9aa.tar.bz2 |
PR1068 - Unbounded array debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/DebugInfo/2007-01-02-UnboundedArray.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/DebugInfo/2007-01-02-UnboundedArray.cpp b/test/DebugInfo/2007-01-02-UnboundedArray.cpp new file mode 100644 index 0000000..648d19b --- /dev/null +++ b/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; +} |