Sign in
fuchsia
/
third_party
/
rust
/
02856110968903bf50a32184db200ccd9b6cc8b6
/
.
/
tests
/
ui
/
issues
/
issue-76042.rs
blob: 34d5293799aa7d636b47fecead3195b2294e5a38 [
file
] [
log
] [
blame
]
// run-pass
// compile-flags: -Coverflow-checks=off -Ccodegen-units=1 -Copt-level=0
fn
foo
(
a
:
i128
,
b
:
i128
,
s
:
u32
)
->
(
i128
,
i128
)
{
if
s
==
128
{
(
0
,
0
)
}
else
{
(
b
>>
s
,
a
>>
s
)
}
}
fn
main
()
{
let
r
=
foo
(
0
,
8
,
1
);
if
r
.
0
!=
4
{
panic
!();
}
}