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

17 lines
263 B
Rust
Raw Normal View History

2024-12-05 02:03:12 +00:00
//@ compile-flags:-Zprint-mono-items=eager
#![feature(start)]
2024-05-29 04:25:55 +00:00
pub static FN: fn() = foo::<i32>;
2024-05-29 04:25:55 +00:00
pub fn foo<T>() {}
2024-12-05 02:03:12 +00:00
//~ MONO_ITEM fn foo::<i32>
//~ MONO_ITEM static FN
//~ MONO_ITEM fn start
#[start]
fn start(_: isize, _: *const *const u8) -> isize {
0
}