llvm-project/flang/test/Driver/driver-version.f90

18 lines
443 B
Fortran

! REQUIRES: new-flang-driver
!-----------
! RUN LINES
!-----------
! RUN: %flang --version 2>&1 | FileCheck %s
! RUN: not %flang --versions 2>&1 | FileCheck %s --check-prefix=ERROR
!-----------------------
! EXPECTED OUTPUT
!-----------------------
! CHECK: flang-new version
! CHECK-NEXT: Target:
! CHECK-NEXT: Thread model:
! CHECK-NEXT: InstalledDir:
! ERROR: flang-new: error: unsupported option '--versions'; did you mean '--version'?