gcc/testsuite/gcc.c-torture/execute/20000314-2.c
raw| 1 | void abort(void); |
| 2 | void exit(int); |
| 3 | |
| 4 | typedef unsigned long long uint64; |
| 5 | const uint64 bigconst = 1ULL << 34; |
| 6 | |
| 7 | int a = 1; |
| 8 | |
| 9 | static |
| 10 | uint64 getmask(void) |
| 11 | { |
| 12 | if (a) |
| 13 | return bigconst; |
| 14 | else |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | int |
| 19 | main(void) |
| 20 | { |
| 21 | uint64 f = getmask(); |
| 22 | if (sizeof (long long) == 8 |
| 23 | && f != bigconst) abort (); |
| 24 | exit (0); |
| 25 | } |
| 26 | |
| 27 |