Johnny Chen | 37f99fd | 2011-03-01 02:20:14 +0000 | [diff] [blame] | 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 process. |
| 12 | |
| 13 | char my_char = 'u'; |
| 14 | |
| 15 | int main (int argc, char const *argv[]) |
| 16 | { |
| 17 | for (int i = 0; i < 3; ++i) { |
| 18 | printf("my_char='%c'\n", my_char); |
| 19 | ++my_char; |
| 20 | } |
| 21 | |
| 22 | printf("after the loop: my_char='%c'\n", my_char); // 'my_char' should print out as 'x'. |
| 23 | |
| 24 | return 0; // Set break point at this line and check variable 'my_char'. |
| 25 | } |