llvm-6502/test/FrontendC/2008-08-07-AlignPadding2.c

19 lines
338 B
C
Raw Normal View History

/* RUN: %llvmgcc %s -S -o - -emit-llvm -O0 | grep zeroinitializer | count 1
The FE must not generate padding here between array elements. PR 2533. */
typedef struct {
const char *name;
int flags;
union {
int x;
} u;
} OptionDef;
const OptionDef options[] = {
/* main options */
{ "a", 0, {3} },
{ "b", 0, {4} },
{ 0, },
};