[flang-commits] [flang] 4c73549 - [test] Fix compiler_version.f90 for -DLLVM_APPEND_VC_REV=OFF builds after D152572
Fangrui Song via flang-commits
flang-commits at lists.llvm.org
Sat Jul 22 16:06:33 PDT 2023
Author: Fangrui Song
Date: 2023-07-22T16:06:29-07:00
New Revision: 4c73549ebf171c1fa8039dc97e8fa260e824aa96
URL: https://github.com/llvm/llvm-project/commit/4c73549ebf171c1fa8039dc97e8fa260e824aa96
DIFF: https://github.com/llvm/llvm-project/commit/4c73549ebf171c1fa8039dc97e8fa260e824aa96.diff
LOG: [test] Fix compiler_version.f90 for -DLLVM_APPEND_VC_REV=OFF builds after D152572
Checking the patch version is too strict. Just check major and minor
versions as in clang/test/Driver/immediate-options.c.
Added:
Modified:
flang/test/Evaluate/compiler_version.f90
Removed:
################################################################################
diff --git a/flang/test/Evaluate/compiler_version.f90 b/flang/test/Evaluate/compiler_version.f90
index db64e834124ccb..070b973550407c 100644
--- a/flang/test/Evaluate/compiler_version.f90
+++ b/flang/test/Evaluate/compiler_version.f90
@@ -4,7 +4,7 @@ program main
use ISO_FORTRAN_ENV, only: compiler_version
implicit none
character (len = :), allocatable :: v
-! CHECK: v="{{.*}}flang version {{[0-9]*.[0-9]*.[0-9]}} {{.*}}"
+! CHECK: v="{{.*}}flang version {{[0-9]+\.[0-9.]+.*}}"
v = compiler_version()
print *, v
deallocate(v)
More information about the flang-commits
mailing list