[compiler-rt] 1879af1 - Fix test's FileCheck match to allow a column number in message. (#195356)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 14:06:35 PDT 2026


Author: James Y Knight
Date: 2026-05-01T17:06:30-04:00
New Revision: 1879af132627bbd326ce5cd82e45c6813a4727d8

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

LOG: Fix test's FileCheck match to allow a column number in message. (#195356)

In some cases, the cfi diagnostic is emitted with a column
number. Allow that in the test.

Added: 
    

Modified: 
    compiler-rt/test/cfi/icall/bad-signature.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/cfi/icall/bad-signature.c b/compiler-rt/test/cfi/icall/bad-signature.c
index 044c0e0f3cb4f..93f2c5797bda6 100644
--- a/compiler-rt/test/cfi/icall/bad-signature.c
+++ b/compiler-rt/test/cfi/icall/bad-signature.c
@@ -17,7 +17,7 @@ int main() {
   fprintf(stderr, "1\n");
 
   // CFI-DIAG: runtime error: control flow integrity check for type 'void (int)' failed during indirect function call
-  // CFI-DIAG: bad-signature.c:[[@LINE-8]]: note: f defined here
+  // CFI-DIAG: bad-signature.c:[[@LINE-8]]{{(:[0-9]+)?}}: note: f defined here
   ((void (*)(int))f)(42); // UB here
 
   // CFI-NOT: 2


        


More information about the llvm-commits mailing list