Debian Codegraph @

gcc/testsuite/gcc.dg/ubsan/pr78248.c

raw
1 /* PR rtl-optimization/78232 */
2 /* PR rtl-optimization/78248 */
3 /* { dg-do run } */
4 /* { dg-options "-fsanitize=undefined" } */
5
6 static struct S
7 {
8 int f0:15;
9 } a;
10
11 int b[1], c = 2, d, e, f, g;
12
13 int main ()
14 {
15 struct S h = { -2 };
16 for (; e < 640; e++)
17 for (; f < 1; f++)
18 {
19 if (c < 2)
20 {
21 d = b[e];
22 h = a;
23 }
24 g = c;
25 c = 1;
26 if (!h.f0)
27 break;
28 c = g;
29 }
30 return 0;
31 }