[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / commands / watchpoints / watchpoint_commands / condition / main.cpp
blobf0d14f3840412bc096c1045d34b8d012dac8877f
1 #include <stdio.h>
2 #include <stdint.h>
4 int32_t global = 0; // Watchpoint variable declaration.
6 static void modify(int32_t &var) {
7 ++var;
10 int main(int argc, char** argv) {
11 int local = 0;
12 printf("&global=%p\n", &global);
13 printf("about to write to 'global'...\n"); // Set break point at this line.
14 // When stopped, watch 'global',
15 // for the condition "global == 5".
16 for (int i = 0; i < 10; ++i)
17 modify(global);
19 printf("global=%d\n", global);