about summary refs log tree commit diff
path: root/tests/codegen-units/item-collection/static-init.rs
blob: b357f5cd66b2e9067dd6336a83fdcaaff76b6560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ compile-flags:-Zprint-mono-items=eager -Zpolymorphize=on

#![feature(start)]

pub static FN : fn() = foo::<i32>;

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
}