diff options
author | Eric Christopher <echristo@apple.com> | 2011-08-19 23:15:04 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-08-19 23:15:04 +0000 |
commit | 3b20b9ee0da7f840369088874e3f806d71309d77 (patch) | |
tree | 737248e4593e33fea0192d7d3392bb96d04d31cc /test/CodeGenCXX/2007-01-02-UnboundedArray.cpp | |
parent | 335552e3fff9f41067cccfd72557f801d398949a (diff) |
Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/2007-01-02-UnboundedArray.cpp')
-rw-r--r-- | test/CodeGenCXX/2007-01-02-UnboundedArray.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp b/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp new file mode 100644 index 0000000000..0cd83fa7ed --- /dev/null +++ b/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; +} |