C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 930718-1.c
blob7dbb7a09e50f8ec3763b8d2a580d62d85bac3c86
1 /* { dg-additional-options "-std=gnu89" } */
3 typedef struct rtx_def
5 int f1 :1;
6 int f2 :1;
7 } *rtx;
9 static rtx
10 f (orig)
11 register rtx orig;
13 if (orig->f1 || orig->f2)
14 return orig;
15 orig->f2 = 1;
16 return orig;
19 void
20 f2 ()
22 abort ();
25 main ()
27 struct rtx_def foo;
28 rtx bar;
30 foo.f1 = 1;
31 foo.f2 = 0;
32 bar = f (&foo);
33 if (bar != &foo || bar->f2 != 0)
34 abort ();
35 exit (0);