Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
abi
/
extern
/
extern-call-direct.rs
blob: 19b901d49a4280dccb0927c9bc95c9cd28c7fd04 [
file
] [
log
] [
blame
]
// run-pass
// Test direct calls to extern fns.
extern
"C"
fn
f
(
x
:
usize
)
->
usize
{
x
*
2
}
pub
fn
main
()
{
let
x
=
f
(
22
);
assert_eq
!(
x
,
44
);
}