blob: 84d49bcef638aa724eda59eaaf5a1e7180cb03c1 [file]
//@ run-pass
//@ check-run-results
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
//@ ignore-windows-gnu
// Tests whether EIIs work on statics
#![feature(extern_item_impls)]
#[eii(hello)]
static HELLO: u64;
#[hello]
static HELLO_IMPL: u64 = 5;
// what you would write:
fn main() {
// directly
println!("{HELLO_IMPL}");
// through the alias
println!("{HELLO}");
}