1 | #include <stdio.h> |
---|---|
2 | |
3 | int g_global_var = 123; |
4 | static int g_static_var = 123; |
5 | |
6 | int main (int argc, char const *argv[]) |
7 | { |
8 | static int static_var = 123; |
9 | g_static_var = 123; // clang bug. Need to touch this variable, otherwise it disappears. |
10 | int i = 0; // breakpoint 1 |
11 | for (i=0; i<1; ++i) |
12 | { |
13 | int j = i*2; |
14 | printf(format: "i = %i, j = %i\n", i, j); // breakpoint 2 |
15 | { |
16 | int k = i*j*3; |
17 | printf(format: "i = %i, j = %i\n", i, j); // breakpoint 3 |
18 | } |
19 | } |
20 | return 0; |
21 | } |
22 |