1 | #include <stdio.h> |
---|---|
2 | |
3 | static int g_var = 0; |
4 | |
5 | int step_out_of_me() |
6 | { |
7 | return g_var; // Set a breakpoint here and step out. |
8 | } |
9 | |
10 | void |
11 | increment_gvar() { |
12 | g_var++; |
13 | } |
14 | |
15 | int |
16 | main() |
17 | { |
18 | int result = step_out_of_me(); // Stop here first |
19 | increment_gvar(); // Continue to here |
20 | return result; |
21 | } |
22 |