2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / cxx11-shift-2.C
blobfbc16dfd3d8d1f27c5a128e1c4db6c7fe281d035
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=shift -w -std=c++11" } */
4 int
5 main (void)
7   int a = -42;
8   a <<= 1;
10 /* { dg-output "left shift of negative value -42" } */