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" } */
|