Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / watchpoint / main.c
blob80d35a920d67a961eaa5fdfc4da3b0e1006f0ad3
1 #include <stdio.h>
2 #include <stdint.h>
4 int32_t global = 10; // Watchpoint variable declaration.
6 int main(int argc, char** argv) {
7 int local = 0;
8 printf("&global=%p\n", &global);
9 printf("about to write to 'global'...\n"); // Set break point at this line.
10 // When stopped, watch 'global' for read&write.
11 global = 20;
12 local += argc;
13 ++local;
14 printf("local: %d\n", local);
15 printf("global=%d\n", global);