rust/tests/run-make/used-cdylib-macos/dylib_used.rs

5 lines
78 B
Rust

#![crate_type = "cdylib"]
#[used]
static VERY_IMPORTANT_SYMBOL: u32 = 12345;