rust/tests/mir-opt/const_prop/transmute.valid_char.ConstProp.32bit.diff
2023-06-15 15:19:11 -04:00

16 lines
288 B
Diff

- // MIR for `valid_char` before ConstProp
+ // MIR for `valid_char` after ConstProp
fn valid_char() -> char {
let mut _0: char;
scope 1 {
}
bb0: {
- _0 = const 82_u32 as char (Transmute);
+ _0 = const 'R';
return;
}
}