1 | // 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 | }; |
19 | extern const struct Qux Bork; |
20 | const struct Qux Bork = { |
21 | 0, |
22 | { |
23 | {0}, |
24 | {0} |
25 | } |
26 | }; |
27 |