[clang] Fix implicit integer conversion for opaque enums declared in class templates...
[llvm-project.git] / lldb / test / API / commands / watchpoints / step_over_watchpoint / main.c
blob09dd1f7a42509fe070fbe642aaca5f75386c32b3
1 long g_watch_me_read = 1;
2 long g_watch_me_write = 2;
3 long g_temp = 3;
5 void watch_read() {
6 g_temp = g_watch_me_read;
9 void watch_write() { g_watch_me_write = g_temp++; }
11 void read_watchpoint_testing() {
12 watch_read(); // break here for read watchpoints
13 g_temp = g_watch_me_read;
16 void watch_breakpoint_testing() {
17 watch_write(); // break here for modify watchpoints
18 g_watch_me_write = g_temp;
21 int main() {
22 read_watchpoint_testing();
23 watch_breakpoint_testing();
24 return 0;