2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr62554.c
blob4d6501cba1fb5122cfa9e276766280414c338225
1 /* Check that pre ARMv4 compilation still works. */
2 /* { dg-do compile } */
3 /* { dg-options "-marm -march=armv3 -O" } */
4 /* { dg-require-effective-target arm_arm_ok } */
6 typedef struct
8 char bits;
9 short val;
10 } code;
12 union uu
14 short us;
15 char b[2];
18 int a, b, c, f, g, h;
19 code *d;
21 code e;
23 int
24 fn1 (void)
26 char i;
28 if (e.bits)
30 dodist:
31 f = c;
32 if (e.bits & 6)
34 ++i;
35 if (g)
38 union uu j;
39 j.b[1] = a;
40 h = j.us;
42 while (fn1);
44 else
46 e = d[b];
47 goto dodist;
50 while (i);