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