rust/tests/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs
2023-01-11 09:32:08 +00:00

12 lines
242 B
Rust

use std::io::Write;
#[link(name = "c_static_lib_with_constructor",
kind = "static",
modifiers = "-bundle,+whole-archive")]
extern {}
pub fn hello() {
print!("native_lib_in_src.");
std::io::stdout().flush().unwrap();
}