Skip to content

Commit 766379c

Browse files
committed
FileCheck issue_106141.
1 parent 3738491 commit 766379c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/mir-opt/inline/issue_106141.rs

+6-1
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

@@ -11,6 +14,8 @@ fn index() -> usize {
1114

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

0 commit comments

Comments
 (0)