Unverified Commit 1879af13 authored by James Y Knight's avatar James Y Knight Committed by GitHub
Browse files

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.
parent 2548c010
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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