Skip to content

Commit

Permalink
Run filecheck on dest-prop/simple.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
CastilloDel committed Apr 14, 2024
1 parent 0692090 commit 6774e8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/mir-opt/dest-prop/simple.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//! Copy of `nrvo-simple.rs`, to ensure that full dest-prop handles it too.
//@ unit-test: DestinationPropagation
// EMIT_MIR simple.nrvo.DestinationPropagation.diff
fn nrvo(init: fn(&mut [u8; 1024])) -> [u8; 1024] {
// CHECK-LABEL: fn nrvo(
// CHECK: debug init => [[init:_.*]];
) // CHECK-NOT: {{_.*}} = [[init]];
// CHECK: move [[init]](move {{_.*}})
// CHECK: [[a]] = move [[b]];
// CHECK: id::<usize>(move [[a]])
let mut buf = [0; 1024];
init(&mut buf);
buf
Expand Down

0 comments on commit 6774e8a

Please sign in to comment.