Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/torture/pr57026.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 | |
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; }; | |
8 | |
9 void | |
10 foo (struct C *x, const int *y, unsigned int *z, unsigned int e, unsigned int g) | |
11 { | |
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; | |
22 } |