Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2009-06-18-StaticInitTailPadPack.c
blob065f988b7d09c032dda6c425f5ee8b6b3bd3c08e
1 // RUN: %clang_cc1 %s -emit-llvm -o -
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;
14 struct Qux {
15 unsigned long f1;
16 struct Baz f2;
18 extern const struct Qux Bork;
19 const struct Qux Bork = {
22 {0},
23 {0}