C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 931102-1.c
blob1a681c73a10841eca6fe938171e7ada6fd5052da
1 /* { dg-additional-options "-std=gnu89" } */
2 typedef union
4 struct
6 char h, l;
7 } b;
8 } T;
10 f (x)
11 int x;
13 int num = 0;
14 T reg;
16 reg.b.l = x;
17 while ((reg.b.l & 1) == 0)
19 num++;
20 reg.b.l >>= 1;
22 return num;
25 main ()
27 if (f (2) != 1)
28 abort ();
29 exit (0);