Files
rust/tests/codegen-units/item-collection/static-init.rs

17 lines
259 B
Rust
Raw Permalink Normal View History

//@ compile-flags:-Clink-dead-code
#![crate_type = "lib"]
static FN: fn() = foo::<i32>;
fn foo<T>() {}
2024-12-04 21:03:12 -05:00
//~ MONO_ITEM fn foo::<i32>
//~ MONO_ITEM static FN
//~ MONO_ITEM fn start
#[no_mangle]
pub fn start(_: isize, _: *const *const u8) -> isize {
0
}