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

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