Debian Codegraph @

testsuite/small/rename-12.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_EXPORT_SYMBOLS=g -DCE_RENAME_SYMBOLS" }*/
2 static int g()
3 {
4 volatile int x = 3;
5 return x;
6 }
7
8 int f(void)
9 {
10 return g();
11 }
12
13 /* { dg-final { scan-tree-dump-not "static int g" } } */
14 /* { dg-final { scan-tree-dump "static int \(\*klpe_g\)\(\) __attribute__\(\(used\)\);|__attribute__\(\(used\)\) static int \(\*klpe_g\)\(\);" } } */
15 /* { dg-final { scan-tree-dump "int klpp_f\(void\)\n{\n *return \(\*klpe_g\)\(\)" } } */