2018-05-08 13:10:16 +00:00
|
|
|
// compile-flags:-Zprint-mono-items=eager
|
2015-11-02 13:46:39 +00:00
|
|
|
|
|
|
|
#![deny(dead_code)]
|
2017-12-22 14:31:51 +00:00
|
|
|
#![feature(start)]
|
2015-11-02 13:46:39 +00:00
|
|
|
|
|
|
|
// aux-build:cgu_generic_function.rs
|
|
|
|
extern crate cgu_generic_function;
|
|
|
|
|
2020-08-28 13:31:03 +00:00
|
|
|
//~ MONO_ITEM fn start
|
2017-12-22 14:31:51 +00:00
|
|
|
#[start]
|
|
|
|
fn start(_: isize, _: *const *const u8) -> isize {
|
2020-08-28 13:31:03 +00:00
|
|
|
//~ MONO_ITEM fn cgu_generic_function::bar::<u32>
|
|
|
|
//~ MONO_ITEM fn cgu_generic_function::foo::<u32>
|
2015-11-02 13:46:39 +00:00
|
|
|
let _ = cgu_generic_function::foo(1u32);
|
|
|
|
|
2020-08-28 13:31:03 +00:00
|
|
|
//~ MONO_ITEM fn cgu_generic_function::bar::<u64>
|
|
|
|
//~ MONO_ITEM fn cgu_generic_function::foo::<u64>
|
2015-11-02 13:46:39 +00:00
|
|
|
let _ = cgu_generic_function::foo(2u64);
|
|
|
|
|
|
|
|
// This should not introduce a codegen item
|
|
|
|
let _ = cgu_generic_function::exported_but_not_generic(3);
|
2017-12-22 14:31:51 +00:00
|
|
|
|
|
|
|
0
|
2015-11-02 13:46:39 +00:00
|
|
|
}
|