2023-02-22 11:58:47 -06:00
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
#![no_std]
|
|
|
|
#![no_core]
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
// This is needed because of #![no_core]:
|
|
|
|
#[lang = "sized"]
|
|
|
|
trait Sized {}
|
|
|
|
|
|
|
|
#[link(name = "extern_1", kind = "raw-dylib")]
|
2024-05-29 00:01:33 -05:00
|
|
|
extern "C" {
|
2023-02-22 11:58:47 -06:00
|
|
|
fn extern_fn();
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn extern_fn_caller() {
|
|
|
|
unsafe {
|
|
|
|
extern_fn();
|
|
|
|
}
|
|
|
|
}
|