OSDN Git Service

PR tree-optimization/15262
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 20001101.c
1 extern void abort(void);
2                          
3 typedef struct
4 {
5   unsigned int unchanging : 1;
6 } struc, *rtx;
7
8 rtx dummy ( int *a, rtx *b)
9 {
10   *a = 1;
11   *b = (rtx)7;
12   return (rtx)1;
13 }
14
15 void bogus (insn, thread, delay_list)
16      rtx insn;
17      rtx thread;
18      rtx delay_list;
19 {
20   rtx new_thread;
21   int must_annul;
22
23   delay_list = dummy ( &must_annul, &new_thread);
24   if (delay_list == 0 &&  new_thread )
25     {
26       thread = new_thread;
27     }
28   if (delay_list && must_annul)
29     insn->unchanging = 1;
30   if (new_thread != thread )
31     abort();
32 }
33
34 int main()
35 {
36   struc baz;
37   bogus (&baz, (rtx)7, 0);
38   exit(0);
39   return 0;
40 }