blob: ea13a0a1bc67f9b4323601ec5765865d634db5d1 [file] [log] [blame]
Duncan Sandsd939f4a2008-10-13 19:56:36 +00001/* RUN: %llvmgcc %s -S -o - -emit-llvm -O0 | grep zeroinitializer | count 1
Dale Johannesenea98fe22008-08-08 03:37:11 +00002
3The FE must not generate padding here between array elements. PR 2533. */
4
5typedef struct {
6 const char *name;
7 int flags;
8 union {
9 int x;
10 } u;
11} OptionDef;
12
13const OptionDef options[] = {
14 /* main options */
15 { "a", 0, {3} },
16 { "b", 0, {4} },
17 { 0, },
18};