Debian Codegraph @

gcc/testsuite/gcc.dg/ubsan/c99-shift-2.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=shift -w -std=c99" } */
3
4 int
5 main (void)
6 {
7 int a = 1;
8 a <<= 31;
9 }
10 /* { dg-output "left shift of 1 by 31 places cannot be represented in type 'int'" } */