Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
6af831ace693ed380c3dba78cf133ffdd6d460de
/
.
/
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
);
}
}