Files
rust/tests/ui/linkage-attr/linkage-attr-does-not-panic-llvm-issue-33992.rs

28 lines
527 B
Rust
Raw Normal View History

//@ run-pass
//@ ignore-apple
//@ ignore-wasm32 common linkage not implemented right now
#![feature(linkage)]
#[linkage = "external"]
pub static TEST2: bool = true;
#[linkage = "internal"]
pub static TEST3: bool = true;
2024-12-25 22:24:30 -05:00
#[cfg(not(target_env = "msvc"))]
#[linkage = "linkonce"]
pub static TEST4: bool = true;
2024-12-25 22:24:30 -05:00
#[cfg(not(target_env = "msvc"))]
#[linkage = "linkonce_odr"]
pub static TEST5: bool = true;
#[linkage = "weak"]
pub static TEST7: bool = true;
#[linkage = "weak_odr"]
pub static TEST8: bool = true;
fn main() {}