about summary refs log tree commit diff
path: root/tests/run-make/raw-dylib-elf/main.rs
blob: 3be944d2951489e136c6e1ab4093b3df7a0c0cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
#![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())
}