summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ubsan/c99-wrapv-shift-2.c
blob: 93087d1e817bcd09aa4b205a146559f9ac49b0c8 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do run } */
/* { dg-options "-fsanitize=shift -fwrapv -w -std=c99" } */

int
main (void)
{
  int a = 1;
  a <<= 31;
}