]> git.proxmox.com Git - rustc.git/blob - tests/mir-opt/pre-codegen/spans.rs
New upstream version 1.72.1+dfsg1
[rustc.git] / tests / mir-opt / pre-codegen / spans.rs
1 // Test that the comments we emit in MIR opts are accurate.
2 //
3 // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
4 // compile-flags: -Zmir-include-spans
5 // ignore-wasm32
6
7 #![crate_type = "lib"]
8
9 // EMIT_MIR spans.outer.PreCodegen.after.mir
10 pub fn outer(v: u8) -> u8 {
11 inner(&v)
12 }
13
14 pub fn inner(x: &u8) -> u8 {
15 *x
16 }