Skip to content

Commit 1439ea1

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
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 {{._*}})
710
let mut buf = [0; 1024];
811
init(&mut buf);
912
buf

0 commit comments

Comments
 (0)