rust/tests/run-make/raw-dylib-elf/main.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
253 B
Rust
Raw Permalink Normal View History

#![feature(raw_dylib_elf)]
#![allow(incomplete_features)]
#[link(name = "library", kind = "raw-dylib")]
unsafe extern "C" {
safe fn this_is_a_library_function() -> core::ffi::c_int;
}
fn main() {
println!("{}", this_is_a_library_function())
}