Debian Codegraph @

testsuite/small/rename-13.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=g -DCE_RENAME_SYMBOLS" }*/
2 int f(int x)
3 {
4 return x;
5 }
6
7 struct AAA
8 {
9 int a;
10 };
11
12 struct AAA* g(int x)
13 {
14 static struct AAA aa;
15 aa.a = x;
16 f(x);
17 return &aa;
18 }
19
20 /* { dg-final { scan-tree-dump "struct AAA\* klpp_g\(int x\)" } } */
21 /* { dg-final { scan-tree-dump "f\(x\);" } } */