gcc/testsuite/gcc.c-torture/execute/980505-2.c
raw| 1 | void abort (void); |
| 2 | void exit (int); |
| 3 | |
| 4 | typedef unsigned short Uint16; |
| 5 | typedef unsigned int Uint; |
| 6 | |
| 7 | Uint f () |
| 8 | { |
| 9 | Uint16 token; |
| 10 | Uint count; |
| 11 | static Uint16 values[1] = {0x9300}; |
| 12 | |
| 13 | token = values[0]; |
| 14 | count = token >> 8; |
| 15 | |
| 16 | return count; |
| 17 | } |
| 18 | |
| 19 | int |
| 20 | main () |
| 21 | { |
| 22 | if (f () != 0x93) |
| 23 | abort (); |
| 24 | exit (0); |
| 25 | } |