aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20010329-1.c
blob: 4d495e1afc8252334076918f52c06e0aae7000d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
union u {
  unsigned char a;
  double b;
};

int a;

union u foo (void)
{
  union u b;

  if (a)
    b.a = 1;
  else
    b.a = 0;
  return b;
}