clang/test/CodeGen/2009-06-18-StaticInitTailPadPack.c
raw| 1 | // RUN: %clang_cc1 %s -emit-llvm -o - |
| 2 | |
| 3 | typedef struct A *Foo; |
| 4 | #pragma pack(push, 2) |
| 5 | struct Bar { |
| 6 | Foo f1; |
| 7 | unsigned short f2; |
| 8 | float f3; |
| 9 | }; |
| 10 | struct Baz { |
| 11 | struct Bar f1; |
| 12 | struct Bar f2; |
| 13 | }; |
| 14 | struct Qux { |
| 15 | unsigned long f1; |
| 16 | struct Baz f2; |
| 17 | }; |
| 18 | extern const struct Qux Bork; |
| 19 | const struct Qux Bork = { |
| 20 | 0, |
| 21 | { |
| 22 | {0}, |
| 23 | {0} |
| 24 | } |
| 25 | }; |