gcc/testsuite/gcc.c-torture/compile/pr101642.c
raw| 1 | /* PR middle-end/101642 */ |
| 2 | |
| 3 | int x; |
| 4 | |
| 5 | unsigned short |
| 6 | foo (void) |
| 7 | { |
| 8 | return __builtin_bswap16 (x) ? : 0; |
| 9 | } |
| 10 | |
| 11 | int |
| 12 | bar (int x, int y) |
| 13 | { |
| 14 | unsigned short a = __builtin_bswap16 ((unsigned short) x); |
| 15 | unsigned short b = __builtin_bswap16 ((unsigned short) y); |
| 16 | return a == b; |
| 17 | } |