1 //===-- main.c --------------------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #include <stdio.h> 10 11 // This simple program is to test the lldb Python API related to thread. 12 13 char my_char = 'u'; 14 int my_int = 0; 15 16 int main (int argc, char const *argv[]) 17 { 18 for (int i = 0; i < 3; ++i) { 19 printf("my_char='%c'\n", my_char); 20 ++my_char; 21 } 22 23 printf("after the loop: my_char='%c'\n", my_char); // 'my_char' should print out as 'x'. 24 25 return 0; // Set break point at this line and check variable 'my_char'. 26 } 27