xstormy16: Fix xs_hi_nonmemory_operand
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / cxx11-shift-1.C
blob7e998885c9f63daea665ae8705ae4b710fa79b23
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=shift -w -fno-sanitize-recover=shift -std=c++11" } */
4 int
5 main ()
7   int a = 1;
8   a <<= (__SIZEOF_INT__ * __CHAR_BIT__ - 1);
9   a = 16;
10   a <<= (__SIZEOF_INT__ * __CHAR_BIT__ - 5);