Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
test
/
run-make-fulldeps
/
link-path-order
/
main.rs
blob: 10f12823bd3eb3ea766f03d7473f77b5296d8c4a [
file
] [
log
] [
blame
]
#![
feature
(
rustc_private
)]
extern
crate libc
;
#[
link
(
name
=
"foo"
,
kind
=
"static"
)]
extern
{
fn
should_return_one
()
->
libc
::
c_int
;
}
fn
main
()
{
let
result
=
unsafe
{
should_return_one
()
};
if
result
!=
1
{
std
::
process
::
exit
(
255
);
}
}