summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr19687.c
blob: c300ab48cf0571167d353952bb2a88845ce3fd65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern void abort (void);

union U
{
  int i, j[4];
};

int main ()
{
  union U t = {};
  int i;

  for (i = 0; i < 4; ++i)
    if (t.j[i] != 0)
      abort ();

  return 0;
}