Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
abi
/
cabi-int-widening.rs
blob: 240eaebf3d6855575175db37c5c24509c0cbeac9 [
file
] [
log
] [
blame
]
// run-pass
// ignore-wasm32-bare no libc to test ffi with
#[
link
(
name
=
"rust_test_helpers"
,
kind
=
"static"
)]
extern
{
fn
rust_int8_to_int32
(
_
:
i8
)
->
i32
;
}
fn
main
()
{
let
x
=
unsafe
{
rust_int8_to_int32
(-
1
)
};
assert
!(
x
==
-
1
);
}