bolt/deps/llvm-18.1.8/lldb/test/API/commands/watchpoints/unaligned-watchpoint/main.c

16 lines
272 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
#include <stdint.h>
#include <stdio.h>
int main() {
union {
uint8_t buf[8];
uint64_t val;
} a;
a.val = 0;
puts ("ready to loop"); // break here
a.val = UINT64_MAX;
for (int i = 0; i < 5; i++) {
a.val = i;
printf("a.val is %lu\n", a.val);
}
}