PR middle-end/30262
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 930718-1.c
bloba8eacc2d222ebddbbbdce7fadb49a9726a7edd0d
1 typedef struct rtx_def
3 int f1 :1;
4 int f2 :1;
5 } *rtx;
7 static rtx
8 f (orig)
9 register rtx orig;
11 if (orig->f1 || orig->f2)
12 return orig;
13 orig->f2 = 1;
14 return orig;
17 void
18 f2 ()
20 abort ();
23 main ()
25 struct rtx_def foo;
26 rtx bar;
28 foo.f1 = 1;
29 foo.f2 = 0;
30 bar = f (&foo);
31 if (bar != &foo || bar->f2 != 0)
32 abort ();
33 exit (0);