xref: /llvm-project/lldb/test/API/functionalities/watchpoint/unaligned-spanning-two-dwords/main.c (revision 5679379cc7df198a73c137e69134608833ffff8f)
1 #include <stdint.h>
2 #include <stdio.h>
main()3 int main() {
4   union {
5     uint8_t bytebuf[16];
6     uint16_t shortbuf[8];
7     uint64_t dwordbuf[2];
8   } a;
9   a.dwordbuf[0] = a.dwordbuf[1] = 0;
10   a.bytebuf[0] = 0; // break here
11   for (int i = 0; i < 8; i++) {
12     a.shortbuf[i] += i;
13   }
14   for (int i = 0; i < 8; i++) {
15     a.shortbuf[i] += i;
16   }
17 }
18