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 | a8cd70e21af5ab1e56ed8020a2aefff5951dd54a (patch) | |
| tree | c54bc2098891218811baa1cefb35c6af83c32782 /clang | |
| parent | 8d77bb5f06129fe0f0c19e41400a7fd6ce2f2069 (diff) | |
| download | bcm5719-llvm-a8cd70e21af5ab1e56ed8020a2aefff5951dd54a.tar.gz bcm5719-llvm-a8cd70e21af5ab1e56ed8020a2aefff5951dd54a.zip | |
Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++.
llvm-svn: 138138
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp b/clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp new file mode 100644 index 00000000000..0cd83fa7ed4 --- /dev/null +++ b/clang/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; +} |

