Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gcc.dg
/
ubsan
/
c99-shift-2.c
blob: c6662dc43bce000d5bdf06f3e9752a9f28f97645 [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=shift -w -std=c99" } */
int
main
(
void
)
{
int
a
=
1
;
a
<<=
31
;
}
/* { dg-output "left shift of 1 by 31 places cannot be represented in type 'int'" } */