]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2008-08-07-AlignPadding2.c
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGen / 2008-08-07-AlignPadding2.c
1 /* RUN: %clang_cc1 %s -emit-llvm -o - | grep zeroinitializer | count 1
2
3 The FE must not generate padding here between array elements.  PR 2533. */
4
5 typedef struct {
6  const char *name;
7  int flags;
8  union {
9    int x;
10  } u;
11 } OptionDef;
12
13 const OptionDef options[] = {
14  /* main options */
15  { "a", 0, {3} },
16  { "b", 0, {4} },
17  { 0, },
18 };