aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/ubsan/c99-shift-1.c
blob: ff6776bf3c1fb3f14ae6e37be0f3a8f4c0b516cd (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 = -42;
  a << 1;
}
/* { dg-output "left shift of negative value -42" } */