Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr59803.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +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 } |