summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/ubsan/recovery-common.inc
blob: 1e0667adba4755f4b4284c9c131cee332293dbaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
typedef const unsigned long long int CULLI;
typedef volatile int VI;
struct s { signed long int a; };

int
main (void)
{
  volatile int shiftcount = 153;
  volatile int a = __INT_MAX__;
  volatile int b = __INT_MAX__;

  a << 152;
  b << shiftcount;
  a += 1;
  b += 2;

  return 0;
}