blob: cef71a30940d105e3af98db8fe580c40a4ce2230 [file] [log] [blame]
Rafael Espindolaff7cea82013-09-04 04:12:25 +00001/* RUN: %clang_cc1 %s -emit-llvm -o - | grep zeroinitializer | count 1
Eric Christopher85e51562011-07-26 22:17:02 +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};