mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Add FileCheck to issue_107511.rs
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
// skip-filecheck
|
||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||
//@ test-mir-pass: CopyProp
|
||||
|
||||
// EMIT_MIR issue_107511.main.CopyProp.diff
|
||||
fn main() {
|
||||
// CHECK-LABEL: fn main(
|
||||
// CHECK: debug i => [[i:_.*]];
|
||||
// CHECK-NOT: StorageLive([[i]]);
|
||||
// CHECK-NOT: StorageDead([[i]]);
|
||||
let mut sum = 0;
|
||||
let a = [0, 10, 20, 30];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user