rust/tests/codegen-units/item-collection/unreferenced-const-fn.rs

11 lines
217 B
Rust

//@ compile-flags:-Zprint-mono-items=lazy
#![deny(dead_code)]
#![crate_type = "rlib"]
//~ MONO_ITEM fn foo @@ unreferenced_const_fn-cgu.0[External]
#[inline(never)]
pub const fn foo(x: u32) -> u32 {
x + 0xf00
}