Debian Codegraph @

gcc/testsuite/gcc.dg/pr111922.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-Wno-old-style-definition -O2 -fno-tree-fre" } */
3
4 void f2 (void);
5 void f4 (int, int, int);
6 struct A { int a; };
7 struct B { struct A *b; int c; } v;
8
9 static int
10 f1 (x, y)
11 struct C *x;
12 struct A *y;
13 {
14 (v.c = v.b->a) || (v.c = v.b->a);
15 f2 ();
16 }
17
18 static void
19 f3 (int x, int y)
20 {
21 int b = f1 (0, ~x);
22 f4 (0, 0, v.c);
23 }
24
25 void
26 f5 (void)
27 {
28 f3 (0, 0);
29 }