Skip to content

Commit 33c358c

Browse files
committed
FileCheck issue_106141.
1 parent 9bfe679 commit 33c358c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/mir-opt/inline/issue_106141.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
// skip-filecheck
1+
// Verify that we do not ICE inlining a function which uses _0 as an index.
22
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3+
34
pub fn outer() -> usize {
5+
// CHECK-LABEL: fn outer(
6+
// CHECK: = {{.*}}[_0];
47
inner()
58
}
69

@@ -10,6 +13,8 @@ fn index() -> usize {
1013

1114
#[inline]
1215
fn inner() -> usize {
16+
// CHECK-LABEL: fn inner(
17+
// CHECK: = {{.*}}[_0];
1318
let buffer = &[true];
1419
let index = index();
1520
if buffer[index] {

0 commit comments

Comments
 (0)