Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr111294.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fdump-tree-optimized" } */
3
4 void foo(void);
5 static short a;
6 static int b, c, d;
7 static int *e, *f = &d;
8 static int **g = &e;
9 static unsigned char h;
10 static short(i)(short j, int k) { return j > k ?: j; }
11 static char l() {
12 if (a) return b;
13 return c;
14 }
15 int main() {
16 b = 0;
17 for (; b < 5; ++b)
18 ;
19 h = l();
20 if (a ^ 3 >= i(h, 11))
21 a = 0;
22 else {
23 *g = f;
24 if (e == &d & b) {
25 __builtin_unreachable();
26 } else
27 foo();
28 ;
29 }
30 }
31
32 /* { dg-final { scan-tree-dump-not "foo" "optimized" } } */