xref: /llvm-project/clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp (revision 3459ce2e5ebbabb8d4dde3809da50dc89e1b0b35)
1a8cd70e2SEric Christopher // Make sure unbounded arrays compile with debug information.
2a8cd70e2SEric Christopher //
3*3459ce2eSDouglas Katzman // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o -
4a8cd70e2SEric Christopher 
5a8cd70e2SEric Christopher // PR1068
6a8cd70e2SEric Christopher 
7a8cd70e2SEric Christopher struct Object {
8a8cd70e2SEric Christopher   char buffer[];
9a8cd70e2SEric Christopher };
10a8cd70e2SEric Christopher 
main(int argc,char ** argv)11a8cd70e2SEric Christopher int main(int argc, char** argv) {
12a8cd70e2SEric Christopher   new Object;
13a8cd70e2SEric Christopher   return 0;
14a8cd70e2SEric Christopher }
15