Skip to content

Commit e6a1b77

Browse files
committed
FileCheck cast.
1 parent b8f2f63 commit e6a1b77

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/mir-opt/const_prop/cast.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
// skip-filecheck
21
// unit-test: ConstProp
32
// EMIT_MIR cast.main.ConstProp.diff
43

54
fn main() {
5+
// CHECK-LABEL: fn main(
6+
// CHECK: debug x => [[x:_.*]];
7+
// CHECK: debug y => [[y:_.*]];
8+
// CHECK: [[x]] = const 42_u32;
9+
// CHECK: [[y]] = const 42_u8;
610
let x = 42u8 as u32;
7-
811
let y = 42u32 as u8;
912
}

0 commit comments

Comments
 (0)