mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-19 10:44:03 +00:00
13 lines
291 B
Rust
13 lines
291 B
Rust
//@ test-mir-pass: GVN
|
|
// EMIT_MIR cast.main.GVN.diff
|
|
|
|
fn main() {
|
|
// CHECK-LABEL: fn main(
|
|
// CHECK: debug x => [[x:_.*]];
|
|
// CHECK: debug y => [[y:_.*]];
|
|
// CHECK: [[x]] = const 42_u32;
|
|
// CHECK: [[y]] = const 42_u8;
|
|
let x = 42u8 as u32;
|
|
let y = 42u32 as u8;
|
|
}
|