Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.1.B
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
save-expr-3.c
blob: dd2903bd68229d666a85ef8c8ceb758f8c900ff3 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-fsanitize=shift -Wall -Werror -O" } */
int
x
;
int
foo
(
int
i
,
int
u
)
{
return
(
i
<<
u
)
<<
x
;
}
int
bar
(
int
i
,
int
u
)
{
return
(
i
>>
u
)
>>
x
;
}