Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gcc.dg
/
ubsan
/
c99-shift-1.c
blob: ff6776bf3c1fb3f14ae6e37be0f3a8f4c0b516cd [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=shift -w -std=c99" } */
int
main
(
void
)
{
int
a
=
-
42
;
a
<<
1
;
}
/* { dg-output "left shift of negative value -42" } */