summaryrefslogtreecommitdiffstats
path: root/tests/codegen-units/item-collection/unreferenced-const-fn.rs
blob: 17b92eae00d0680e9eea740db9a87bccc8f82043 (plain)
1
2
3
4
5
6
7
8
9
// compile-flags:-Zprint-mono-items=lazy

#![deny(dead_code)]
#![crate_type = "rlib"]

//~ MONO_ITEM fn foo @@ unreferenced_const_fn-cgu.0[External]
pub const fn foo(x: u32) -> u32 {
    x + 0xf00
}