2 !!DESCRIPTION!! Assign an int; then, do an operation that depends directly on that assignment.
3 !!ORIGIN!! cc65 regression tests
4 !!LICENCE!! Public Domain
10 static unsigned char failures = 0;
12 static unsigned int result;
13 static const unsigned int buffer = 0xABCD;
19 /* Shift doesn't use high byte (X register); previous assignment should be optimized. */
21 if (result != 0xCD00) {
23 printf("assign-use1: left shift is $%X, not $CD00.\n", result);
28 /* Shift does use high byte; previous assignment shouldn't be optimized by OptStore5(). */
30 if (result != 0x00AB) {
32 printf("assign-use1: right shift is $%X, not $00AB.\n", result);