Skip to content

Commit d0365d3

Browse files
committed
Add FileCheck to move_arg.rs
Signed-off-by: Shunpoco <[email protected]>
1 parent 2d04a63 commit d0365d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
// skip-filecheck
21
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
32
// Test that we do not move multiple times from the same local.
43
//@ test-mir-pass: CopyProp
54

65
// EMIT_MIR move_arg.f.CopyProp.diff
76
pub fn f<T: Copy>(a: T) {
7+
// CHECK-LABEL: fn f(
8+
// CHECK: debug a => [[a:_.*]];
9+
// CHECK: debug b => [[a]];
10+
// CHECK: g::<T>(copy [[a]], copy [[a]])
811
let b = a;
912
g(a, b);
1013
}

0 commit comments

Comments
 (0)