llvm/test/tools/llvm-symbolizer/Inputs/symbols.part1.cpp
raw| 1 | #include "symbols.h" |
| 2 | |
| 3 | int global_01 = 22; |
| 4 | |
| 5 | int static static_var = 0; |
| 6 | |
| 7 | static int static_func_01(int x) { |
| 8 | static_var = x; |
| 9 | return global_01; |
| 10 | } |
| 11 | |
| 12 | int func_01() { |
| 13 | int res = 1; |
| 14 | return res + static_func_01(22); |
| 15 | } |
| 16 | |
| 17 | int func_04() { |
| 18 | static_var = 0; |
| 19 | return 22; |
| 20 | } |
| 21 | |
| 22 | int func_04(int x) { |
| 23 | int res = static_var; |
| 24 | return res + func_03(x); |
| 25 | } |