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
279 B
Rust
Raw Normal View History

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