016-short-arith.c (358B)
1 // tests/cc-parse/16-short-arith.c — width-correct short load/store via 2 // real C source. 3 // 4 // Two adjacent unsigned-short locals at consecutive 2-byte slots. 5 // Width-aware emission keeps b's store from contaminating a's slot. 6 7 int main() { 8 unsigned short a = 43707; /* 0xAABB */ 9 unsigned short b = 52445; /* 0xCCDD */ 10 return a == 43707; 11 }