blob: 0d507b9f3b4e5510401fe5d31a9ff962889a4b7e [file] [log] [blame]
Johnny Chen37f99fd2011-03-01 02:20:14 +00001//===-- 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
13char my_char = 'u';
14
15int 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}