repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2009-06-18-StaticInitTailPadPack.c
blob
065f988b7d09c032dda6c425f5ee8b6b3bd3c08e
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
};