[flang-commits] [flang] b50151e - [flang][test] Narrow dead SELECT CASE check (#229164)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 5 12:56:41 PDT 2026


Author: Andre Kuhlenschmidt
Date: 2026-10-05T12:56:33-07:00
New Revision: b50151ea8ea9ca57c97da9f816dbfb964e2e4279

URL: https://github.com/llvm/llvm-project/commit/b50151ea8ea9ca57c97da9f816dbfb964e2e4279
DIFF: https://github.com/llvm/llvm-project/commit/b50151ea8ea9ca57c97da9f816dbfb964e2e4279.diff

LOG: [flang][test] Narrow dead SELECT CASE check (#229164)

Narrow the `CHECK-NOT` pattern in `select-case-statement.f90` from the
generic string `888` to `arith.constant 888`.

The original pattern could accidentally match `888` within generated
symbol names or source-file hashes, causing path-dependent test
failures. The
narrower pattern continues to verify that the dead `CASE DEFAULT` value
is not lowered while avoiding unrelated textual matches.

This is a test-only NFC change.

Added: 
    

Modified: 
    flang/test/Lower/select-case-statement.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Lower/select-case-statement.f90 b/flang/test/Lower/select-case-statement.f90
index 30b7551df6ca9..fae87420d3df4 100644
--- a/flang/test/Lower/select-case-statement.f90
+++ b/flang/test/Lower/select-case-statement.f90
@@ -104,7 +104,7 @@ subroutine slogical(L)
       ! CHECK: cf.cond_br
       case (.true.)
         n8 = 2
-      ! CHECK-NOT: 888
+      ! CHECK-NOT: arith.constant 888
       case default ! dead
         n8 = 888
     end select


        


More information about the flang-commits mailing list