1 | void InstallBreakpad(); |
---|---|
2 | void WriteMinidump(); |
3 | |
4 | int global = 42; |
5 | |
6 | int bar(int x) { |
7 | WriteMinidump(); |
8 | int y = 4 * x + global; |
9 | return y; |
10 | } |
11 | |
12 | int foo(int x) { |
13 | int y = 2 * bar(x: 3 * x); |
14 | return y; |
15 | } |
16 | |
17 | extern "C"void _start(); |
18 | |
19 | void _start() { |
20 | InstallBreakpad(); |
21 | foo(x: 1); |
22 | } |
23 |