1 | #include <stdio.h> |
---|---|
2 | |
3 | // This simple program is to test the lldb Python API related to thread. |
4 | |
5 | char my_char = 'u'; |
6 | int my_int = 0; |
7 | |
8 | int main (int argc, char const *argv[]) |
9 | { |
10 | for (int i = 0; i < 3; ++i) { |
11 | printf(format: "my_char='%c'\n", my_char); |
12 | ++my_char; |
13 | } |
14 | |
15 | printf(format: "after the loop: my_char='%c'\n", my_char); // 'my_char' should print out as 'x'. |
16 | |
17 | return 0; // Set break point at this line and check variable 'my_char'. |
18 | } |
19 |