Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
cxx11-shift-2.C
blob: 867908aef7912181354ab82c9376bfaa74133521 [
file
] [
log
] [
blame
]
/* { dg-do run { target c++11 } } */
/* { dg-options "-fsanitize=shift -w" } */
int
main
(
void
)
{
int
a
=
-
42
;
a
<<=
1
;
}
/* { dg-output "left shift of negative value -42" } */