Fixed some version information in flang/f18: - fixed the behavior of the -v switch: this flag enables verbosity with used with arguments, but just displays the version when used alone (related to this bug: https://bugs.llvm.org/show_bug.cgi?id=46017) - added __FLANG, __FLANG_MAJOR__, __FLANG_MINOR__ and __FLANG_PATCHLEVEL__ (similar to their __F18* counterparts) for compatibility purpose Reviewed By: AlexisPerry, richard.barton.arm, tskeith Differential Revision: https://reviews.llvm.org/D84334
11 lines
416 B
Fortran
11 lines
416 B
Fortran
! Check that lit configuration works by checking the compiler version
|
|
|
|
! VERSION-NOT:{{![[:space:]]}}
|
|
! VERSION:{{[[:space:]]}}
|
|
! VERSION-SAME:f18 compiler (under development), version {{[1-9][0-9]*.[0-9]*.[0-9]*}}
|
|
! VERSION-EMPTY:
|
|
|
|
! RUN: %f18 -V 2>&1 | FileCheck -check-prefix=VERSION %s
|
|
! RUN: %f18 -v 2>&1 | FileCheck -check-prefix=VERSION %s
|
|
! RUN: %f18 --version 2>&1 | FileCheck -check-prefix=VERSION %s
|