blob: 20a517dcda9b2058c1aa3c71e718846bd0218a03 [file] [log] [blame] [edit]
use std::ffi::c_int;
#[link(name = "foo", kind = "static")]
extern "C" {
fn should_return_one() -> c_int;
}
fn main() {
let result = unsafe { should_return_one() };
if result != 1 {
std::process::exit(255);
}
}