Debian Codegraph @

testsuite/small/rename-15.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_EXPORT_SYMBOLS=h,g" }*/
2
3 int g(int);
4
5 int h(int x)
6 {
7 return g(x);
8 }
9
10 int g(int x)
11 {
12 return h(x);
13 }
14
15 int f(void)
16 {
17 return g(3);
18 }
19
20 /* { dg-final { scan-tree-dump "return \(\*klpe_g\)\(3\);" } } */
21 /* { dg-final { scan-tree-dump "static int \(\*klpe_g\)\(int\) __attribute__\(\(used\)\);|__attribute__\(\(used\)\) static int \(\*klpe_g\)\(int\);" } } */