From: Eric Christopher Date: Fri, 19 Aug 2011 23:15:04 +0000 (+0000) Subject: Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b20b9ee0da7f840369088874e3f806d71309d77;p=clang 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 --- 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; +}