Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
df59800b0875719b6f661cc191fa35263a29efa3
/
.
/
tests
/
ui
/
abi
/
cabi-int-widening.rs
blob: e211b98983731ccff7b5a0ed817b927edef677e8 [
file
] [
log
] [
blame
]
//@ run-pass
#[
link
(
name
=
"rust_test_helpers"
,
kind
=
"static"
)]
extern
"C"
{
fn
rust_int8_to_int32
(
_
:
i8
)
->
i32
;
}
fn
main
()
{
let
x
=
unsafe
{
rust_int8_to_int32
(-
1
)
};
assert
!(
x
==
-
1
);
}