about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShunpoco <tkngsnsk313320@gmail.com>2024-12-30 23:48:53 +0000
committerShunpoco <tkngsnsk313320@gmail.com>2025-01-04 12:53:07 +0000
commit7061551498ce6a20265517f517449026356240dd (patch)
tree232b33c03eb493bb8e548d7f153cfb0145bcab33
parent7f75bfa1ad4e9a9d33a179a90603001515e91991 (diff)
downloadrust-7061551498ce6a20265517f517449026356240dd.tar.gz
rust-7061551498ce6a20265517f517449026356240dd.zip
Add FileCheck annotations to mir-opt/issues
From #123067, this test should ensure that there is no duplicated basic block against or-patterns.

Signed-off-by: Shunpoco <tkngsnsk313320@gmail.com>
-rw-r--r--tests/mir-opt/issues/issue_75439.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/mir-opt/issues/issue_75439.rs b/tests/mir-opt/issues/issue_75439.rs
index ea763dd1b10..d7883f0dc71 100644
--- a/tests/mir-opt/issues/issue_75439.rs
+++ b/tests/mir-opt/issues/issue_75439.rs
@@ -1,10 +1,14 @@
-// skip-filecheck
 // EMIT_MIR issue_75439.foo.MatchBranchSimplification.diff
 //@ ignore-endian-big
 
 use std::mem::transmute;
 
 pub fn foo(bytes: [u8; 16]) -> Option<[u8; 4]> {
+    // CHECK-LABEL: fn foo(
+    // CHECK: bb2: {
+    // CHECK-NEXT: 0: [[bb:bb[0-9]+]],
+    // CHECK-SAME: {{[0-9]+}}: [[bb]],
+
     // big endian `u32`s
     let dwords: [u32; 4] = unsafe { transmute(bytes) };
     const FF: u32 = 0x0000_ffff_u32.to_be();