testsuite/small/rename-11.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=g -DCE_EXPORT_SYMBOLS=f -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 | return &aa; |
| 17 | } |
| 18 | |
| 19 | /* { dg-final { scan-tree-dump "struct AAA\* klpp_g\(int x\)" } } */ |