blob: fd0735b69effff740b8f095f96984cae3b17ccde [file] [log] [blame]
// RUN: clang -emit-llvm %s
void f1() {
// Scalars in braces.
int a = { 1 };
int b = { 1, 2 };
}
void f2() {
int a[2][2] = { { 1, 2 }, { 3, 4 } };
int b[3][3] = { { 1, 2 }, { 3, 4 } };
int *c[2] = { &a[1][1], &b[2][2] };
int *d[2][2] = { {&a[1][1], &b[2][2]}, {&a[0][0], &b[1][1]} };
int *e[3][3] = { {&a[1][1], &b[2][2]}, {&a[0][0], &b[1][1]} };
char ext[3][3] = {".Y",".U",".V"};
}