☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
ubsan
/
c99-shift-2.c
☽
☼
gcc/testsuite/gcc.dg/ubsan/c99-shift-2.c
code
plain
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'" } */