]> git.proxmox.com Git - rustc.git/blame - src/test/codegen-units/item-collection/static-init.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / codegen-units / item-collection / static-init.rs
CommitLineData
3dfed10e 1// compile-flags:-Zprint-mono-items=eager -Zpolymorphize=on
ff7c6d11
XL
2
3#![feature(start)]
54a0048b 4
a7813a04 5pub static FN : fn() = foo::<i32>;
c34b1796 6
a7813a04 7pub fn foo<T>() { }
7453a54e 8
1b1a35ee
XL
9//~ MONO_ITEM fn foo::<T>
10//~ MONO_ITEM static FN
a7813a04 11
1b1a35ee 12//~ MONO_ITEM fn start
ff7c6d11
XL
13#[start]
14fn start(_: isize, _: *const *const u8) -> isize {
15 0
16}