xref: /llvm-project/clang/test/CodeGenCXX/cxx0x-initializer-array.cpp (revision 576cbd03b4e1aaddf28caec97fb6146dc070da8c)
1 // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o - %s | FileCheck %s
2 
3 struct A { int a[1]; };
4 typedef A x[];
5 int f() {
6   x{{{1}}};
7   // CHECK: define i32 @_Z1fv
8   // CHECK: store i32 1
9   // (It's okay if the output changes here, as long as we don't crash.)
10 }
11