about summary refs log tree commit diff
path: root/tests/codegen-units/item-collection/static-init.rs
blob: df5eb830bf38730e164d1e69b60008c04411d81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ compile-flags:-Clink-dead-code

#![crate_type = "lib"]

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

fn foo<T>() {}

//~ MONO_ITEM fn foo::<i32>
//~ MONO_ITEM static FN

//~ MONO_ITEM fn start
#[no_mangle]
pub fn start(_: isize, _: *const *const u8) -> isize {
    0
}