aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ubsan/cxx11-shift-2.C
blob: 867908aef7912181354ab82c9376bfaa74133521 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do run { target c++11 } } */
/* { dg-options "-fsanitize=shift -w" } */

int
main (void)
{
  int a = -42;
  a <<= 1;
}
/* { dg-output "left shift of negative value -42" } */