2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2023-06-06 08:47:00 -05:00
|
|
|
// Test that the comments we emit in MIR opts are accurate.
|
|
|
|
//
|
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2024-04-14 20:22:35 -05:00
|
|
|
//@ compile-flags: -Zmir-include-spans -C debuginfo=full
|
2023-06-06 08:47:00 -05:00
|
|
|
|
|
|
|
#![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
|
|
|
|
}
|