1 | #include <stdint.h> |
---|---|
2 | #include <stdio.h> |
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 |