about summary refs log tree commit diff
path: root/tests/mir-opt/pre-codegen/spans.rs
blob: 940089d2d498ca5b0f45dec96ef55b1a03055305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// skip-filecheck
// Test that the comments we emit in MIR opts are accurate.
//
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//@ compile-flags: -Zmir-include-spans -C debuginfo=full

#![crate_type = "lib"]

// EMIT_MIR spans.outer.PreCodegen.after.mir
pub fn outer(v: u8) -> u8 {
    inner(&v)
}

pub fn inner(x: &u8) -> u8 {
    *x
}