Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr59803.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR target/59803 */ |
2 | |
3 extern void baz (void) __attribute__ ((__noreturn__)); | |
4 struct A { int g, h; }; | |
5 extern struct A a; | |
6 struct B { unsigned char i, j, k, l, m; }; | |
7 int c, d, e; | |
8 static int f; | |
9 | |
10 void | |
11 foo (void) | |
12 { | |
13 f = 1; | |
14 } | |
15 | |
16 void | |
17 bar (struct B *x) | |
18 { | |
19 x->i = e; | |
20 x->k = c; | |
21 x->l = d; | |
22 x->j = a.h; | |
23 x->m = f; | |
24 if (x->i != e) baz (); | |
25 if (x->k != c) baz (); | |
26 if (x->j != a.h) baz (); | |
27 } |