2024-04-20 06:19:34 -05:00
|
|
|
//@ test-mir-pass: GVN
|
2023-09-20 16:43:33 -05:00
|
|
|
// EMIT_MIR cast.main.GVN.diff
|
2020-03-11 05:49:00 -05:00
|
|
|
|
2019-12-12 21:03:32 -06:00
|
|
|
fn main() {
|
2023-12-02 14:18:47 -06:00
|
|
|
// CHECK-LABEL: fn main(
|
|
|
|
// CHECK: debug x => [[x:_.*]];
|
|
|
|
// CHECK: debug y => [[y:_.*]];
|
|
|
|
// CHECK: [[x]] = const 42_u32;
|
|
|
|
// CHECK: [[y]] = const 42_u8;
|
2019-12-12 21:03:32 -06:00
|
|
|
let x = 42u8 as u32;
|
|
|
|
let y = 42u32 as u8;
|
|
|
|
}
|