]> git.proxmox.com Git - rustc.git/blob - tests/codegen-units/item-collection/static-init.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / codegen-units / item-collection / static-init.rs
1 // compile-flags:-Zprint-mono-items=eager -Zpolymorphize=on
2
3 #![feature(start)]
4
5 pub static FN : fn() = foo::<i32>;
6
7 pub fn foo<T>() { }
8
9 //~ MONO_ITEM fn foo::<T>
10 //~ MONO_ITEM static FN
11
12 //~ MONO_ITEM fn start
13 #[start]
14 fn start(_: isize, _: *const *const u8) -> isize {
15 0
16 }