Debian Codegraph @

gcc/testsuite/gcc.dg/ipa/pr124777.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-early-inlining" } */
3
4 int a;
5 char b;
6 void c() {
7 __builtin_exit(0);
8 }
9
10 typedef short (*t_d)(unsigned);
11
12 static short __attribute__((noclone))
13 d(unsigned f)
14 {
15 if (f == (unsigned)(unsigned short)-1)
16 c ();
17 for (; a; a++)
18 ;
19 return 0;
20 }
21
22 typedef short (*t_g)(unsigned, unsigned, unsigned short, t_d);
23
24 static short __attribute__((noclone))
25 g(unsigned f, unsigned h, unsigned short i, t_d p_d) {
26 if (f || h)
27 p_d(i);
28 return 0;
29 }
30
31 static unsigned __attribute__((noclone))
32 j(unsigned f, signed char h, t_d p_d, t_g p_g) {
33 p_g(b, 1, h, p_d);
34 return 0;
35 }
36
37 int main() {
38 signed char e = -1;
39 j(0, e, d, g);
40 return 0;
41 }