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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
267 B
Rust
Raw Normal View History

2024-12-05 02:03:12 +00:00
//@ compile-flags:-Zprint-mono-items=eager
#![crate_type = "lib"]
static FN: fn() = foo::<i32>;
fn foo<T>() {}
2024-12-05 02:03:12 +00: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
}