gcc/testsuite/c-c++-common/ubsan/recovery-common.inc
raw| 1 | typedef const unsigned long long int CULLI; |
| 2 | typedef volatile int VI; |
| 3 | struct s { signed long int a; }; |
| 4 | |
| 5 | int |
| 6 | main (void) |
| 7 | { |
| 8 | volatile int shiftcount = 153; |
| 9 | volatile int a = __INT_MAX__; |
| 10 | volatile int b = __INT_MAX__; |
| 11 | |
| 12 | a << 152; |
| 13 | b << shiftcount; |
| 14 | a += 1; |
| 15 | b += 2; |
| 16 | |
| 17 | return 0; |
| 18 | } |
| 19 |