aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2008-08-07-AlignPadding2.c
blob: ecf28dd72de08329e79906415100bf24d4c2186a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* RUN: %clang_cc1 %s -emit-llvm -o - -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, },
};