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#include <stdint.h> 11 12int32_t global = 10; // Watchpoint variable declaration. 13 14int main(int argc, char** argv) { 15 int local = 0; 16 printf("&global=%p\n", &global); 17 printf("about to write to 'global'...\n"); // Set break point at this line. 18 // When stopped, watch 'global'. 19 global = 20; 20 local += argc; 21 ++local; // Set 2nd break point for disable_then_enable test case. 22 printf("local: %d\n", local); 23 printf("global=%d\n", global); 24} 25