Debian Codegraph @

gcc/testsuite/gcc.dg/pr110080.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 void foo(void);
5 static unsigned char a = 131;
6 static int *b;
7 static int **c = &b;
8 static void d(int e, unsigned f) {
9 int *g;
10 if (f != 131) {
11 __builtin_unreachable();
12 }
13 if (!e){
14 for (; a; ++a)
15 for (e = 0; 0;)
16 ;
17 g = &e;
18 int **h = &g;
19 if (**h) {
20 foo();
21 }
22 }
23 *c = &e;
24 }
25 int main() { d(4 & a, a); }
26
27 /* { dg-final { scan-tree-dump-not "foo" "optimized" } } */