Clean up some of LVI:
[llvm.git] / test / FrontendC / 2008-08-07-AlignPadding1.c
blob6be9fe4ed3b541f5891511b381c6c68070783429
1 /* RUN: %llvmgcc %s -S -o - -O0 | grep {zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer}
3 The FE must generate padding here both at the end of each PyG_Head and
4 between array elements. Reduced from Python. */
6 typedef union _gc_head {
7 struct {
8 union _gc_head *gc_next;
9 union _gc_head *gc_prev;
10 long gc_refs;
11 } gc;
12 int dummy __attribute__((aligned(16)));
13 } PyGC_Head;
15 struct gc_generation {
16 PyGC_Head head;
17 int threshold;
18 int count;
21 #define GEN_HEAD(n) (&generations[n].head)
23 /* linked lists of container objects */
24 static struct gc_generation generations[3] = {
25 /* PyGC_Head, threshold, count */
26 {{{GEN_HEAD(0), GEN_HEAD(0), 0}}, 700, 0},
27 {{{GEN_HEAD(1), GEN_HEAD(1), 0}}, 10, 0},
28 {{{GEN_HEAD(2), GEN_HEAD(2), 0}}, 10, 0},