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

int
main (void)
{
  int a = 1;
  a <<= 31;
}
/* { dg-output "left shift of 1 by 31 places cannot be represented in type int" } */