Skip to content

Commit 17b0d90

Browse files
committed
Add FileCheck to custom_move_arg.rs
1 parent c204231 commit 17b0d90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/mir-opt/copy-prop/custom_move_arg.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// skip-filecheck
21
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
32
//@ test-mir-pass: CopyProp
43

@@ -12,6 +11,13 @@ struct NotCopy(bool);
1211
// EMIT_MIR custom_move_arg.f.CopyProp.diff
1312
#[custom_mir(dialect = "runtime")]
1413
fn f(_1: NotCopy) {
14+
// CHECK-LABEL: fn f(
15+
// CHECK: bb0: {
16+
// CHECK-NOT: _2 = copy _1;
17+
// CHECK: _0 = opaque::<NotCopy>(copy _1)
18+
// CHECK: bb1: {
19+
// CHECK-NOT: _3 = move _2;
20+
// CHECK: _0 = opaque::<NotCopy>(copy _1)
1521
mir! {
1622
{
1723
let _2 = _1;

0 commit comments

Comments
 (0)