[flang-commits] [flang] 4c7ae4a - [flang] Improve compiler_version test (NFC)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Sun Jun 11 18:56:47 PDT 2023


Author: Kelvin Li
Date: 2023-06-11T21:49:03-04:00
New Revision: 4c7ae4ad31c5e89afc42e734bee3048111777ec3

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

LOG: [flang] Improve compiler_version test (NFC)

This patch is to allow an extra string prepended to the compiler_version.
The check is enhanced to verify that "flang version" is followed by
numbers in the form of "n.n.n".

Differential Revision: https://reviews.llvm.org/D152572

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 ebfef95de518d..db64e834124cc 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 {{.*}}"
+! CHECK: v="{{.*}}flang version {{[0-9]*.[0-9]*.[0-9]}} {{.*}}"
     v = compiler_version()
     print *, v
     deallocate(v)


        


More information about the flang-commits mailing list