blob: 466933928665c71dd869ce1d1566b12d7a1e4221 [file] [log] [blame]
Douglas Gregor68c56de2009-03-27 23:40:29 +00001// RUN: clang-cc -triple i386-unknown-unknown %s -emit-llvm -o - | grep "<{ i8\* null, i32 1024 }>" &&
2// RUN: clang-cc -triple i386-unknown-unknown %s -emit-llvm -o - | grep "i32 0, i32 22"
Nuno Lopes5b2c6d92009-01-30 12:58:18 +00003
Douglas Gregor3498bdb2009-01-29 17:44:32 +00004struct foo {
5 void *a;
6 int b;
7};
8
9union { int i; float f; } u = { };
10
11int main(int argc, char **argv)
12{
13 union { int i; float f; } u2 = { };
14 static struct foo foo = {
15 .b = 1024,
16 };
17}
Douglas Gregor68c56de2009-03-27 23:40:29 +000018
19int b[2] = {
20 [1] 22
21};