Rebase.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr57026.c
blobe37895486d605a4c2d508af72150513a78b11652
1 /* { dg-do compile } */
3 typedef struct __jmp_buf_tag { char buf[1024]; } jmp_buf[1];
4 extern int setjmp (jmp_buf);
5 extern int bar (unsigned int *);
6 extern jmp_buf *baz (void);
7 struct C { int c1; unsigned int c2, c3, c4; };
9 void
10 foo (struct C *x, const int *y, unsigned int *z, unsigned int e, unsigned int g)
12 unsigned int d = 0;
13 unsigned long f;
14 setjmp (*baz ());
15 f = d;
16 if ((x->c1 || x->c2) && g && (!e || d >= 8))
17 d = 16;
18 else
19 d = 8;
20 if ((!x->c3 && !x->c4 || *y == 0) && !e && bar (z))
21 *z = f;