Skip to content

Commit b8f2f63

Browse files
committed
FileCheck boxes.
1 parent 3fc0394 commit b8f2f63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/mir-opt/const_prop/boxes.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// skip-filecheck
21
// unit-test: ConstProp
32
// compile-flags: -O
43
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
@@ -9,6 +8,11 @@
98

109
// EMIT_MIR boxes.main.ConstProp.diff
1110
fn main() {
11+
// CHECK-LABEL: fn main(
12+
// CHECK: debug x => [[x:_.*]];
13+
// CHECK: (*{{_.*}}) = const 42_i32;
14+
// CHECK: [[tmp:_.*]] = (*{{_.*}});
15+
// CHECK: [[x]] = Add(move [[tmp]], const 0_i32);
1216
let x = *(#[rustc_box]
1317
Box::new(42))
1418
+ 0;

0 commit comments

Comments
 (0)