2018-05-08 08:10:16 -05:00
|
|
|
// compile-flags:-Zprint-mono-items=eager
|
2015-11-02 07:46:39 -06:00
|
|
|
|
|
|
|
#![deny(dead_code)]
|
2017-12-22 08:31:51 -06:00
|
|
|
#![feature(start)]
|
2015-11-02 07:46:39 -06:00
|
|
|
|
|
|
|
// aux-build:cgu_generic_function.rs
|
|
|
|
extern crate cgu_generic_function;
|
|
|
|
|
2018-05-08 08:10:16 -05:00
|
|
|
//~ MONO_ITEM fn cross_crate_generic_functions::start[0]
|
2017-12-22 08:31:51 -06:00
|
|
|
#[start]
|
|
|
|
fn start(_: isize, _: *const *const u8) -> isize {
|
2018-05-08 08:10:16 -05:00
|
|
|
//~ MONO_ITEM fn cgu_generic_function::bar[0]<u32>
|
|
|
|
//~ MONO_ITEM fn cgu_generic_function::foo[0]<u32>
|
2015-11-02 07:46:39 -06:00
|
|
|
let _ = cgu_generic_function::foo(1u32);
|
|
|
|
|
2018-05-08 08:10:16 -05:00
|
|
|
//~ MONO_ITEM fn cgu_generic_function::bar[0]<u64>
|
|
|
|
//~ MONO_ITEM fn cgu_generic_function::foo[0]<u64>
|
2015-11-02 07:46:39 -06: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 08:31:51 -06:00
|
|
|
|
|
|
|
0
|
2015-11-02 07:46:39 -06:00
|
|
|
}
|