blob: be103ec8e347664b97feb9b8a9683d20649d6f1a [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 %s -emit-llvm -o -
2// rdar://6983634
3
4 typedef struct A *Foo;
5#pragma pack(push, 2)
6 struct Bar {
7 Foo f1;
8 unsigned short f2;
9 float f3;
10 };
11 struct Baz {
12 struct Bar f1;
13 struct Bar f2;
14 };
15 struct Qux {
16 unsigned long f1;
17 struct Baz f2;
18 };
19extern const struct Qux Bork;
20const struct Qux Bork = {
21 0,
22 {
23 {0},
24 {0}
25 }
26};