1#include <stdio.h>
2
3// This simple program is to test the lldb Python API related to thread.
4
5char my_char = 'u';
6int my_int = 0;
7
8int 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

source code of lldb/test/API/python_api/thread/main.cpp