gcc/testsuite/gcc.dg/pr69960.c
raw| 1 | /* PR c/69960 */ |
| 2 | /* { dg-do compile { target int32plus } } */ |
| 3 | |
| 4 | #define TOLOWER(x) (x&~0x20) |
| 5 | #define Word(s) \ |
| 6 | s[1] ? s[2] ? s[3] ? \ |
| 7 | (TOLOWER(s[0]) << 24) + (TOLOWER(s[1]) << 16) + (TOLOWER(s[2]) << 8) + TOLOWER(s[3]) : \ |
| 8 | (TOLOWER(s[0]) << 16) + (TOLOWER(s[1]) << 8) + TOLOWER(s[2]) : \ |
| 9 | (TOLOWER(s[0]) << 8) + TOLOWER(s[1]) : \ |
| 10 | TOLOWER(s[0]) |
| 11 | |
| 12 | const unsigned int _the = Word("the"); |