Skip to content

Commit 7ecf674

Browse files
committed
Run filecheck on dest-prop/simple.rs
1 parent 0692090 commit 7ecf674

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/mir-opt/dest-prop/simple.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
// skip-filecheck
21
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
32
//! Copy of `nrvo-simple.rs`, to ensure that full dest-prop handles it too.
43
//@ unit-test: DestinationPropagation
54
// EMIT_MIR simple.nrvo.DestinationPropagation.diff
65
fn nrvo(init: fn(&mut [u8; 1024])) -> [u8; 1024] {
6+
// CHECK-LABEL: fn nrvo(
7+
// CHECK: debug init => [[init:_.*]];
8+
// CHECK-NOT: {{_.*}} = [[init]];
9+
// CHECK: move [[init]](move {{_.*}})
10+
// CHECK: [[a]] = move [[b]];
11+
// CHECK: id::<usize>(move [[a]])
712
let mut buf = [0; 1024];
813
init(&mut buf);
914
buf

0 commit comments

Comments
 (0)