2020-09-11 17:17:31 +08:00
|
|
|
|
2022-03-29 02:28:51 +08:00
|
|
|
! RUN: %flang --version 2>&1 | FileCheck %s --check-prefix=VERSION
|
2021-04-09 18:32:31 +08:00
|
|
|
! RUN: not %flang --versions 2>&1 | FileCheck %s --check-prefix=ERROR
|
2022-03-29 02:28:51 +08:00
|
|
|
! RUN: %flang_fc1 -version 2>&1 | FileCheck %s --check-prefix=VERSION-FC1
|
|
|
|
! RUN: not %flang_fc1 --version 2>&1 | FileCheck %s --check-prefix=ERROR-FC1
|
2021-04-09 18:32:31 +08:00
|
|
|
|
2022-03-29 02:28:51 +08:00
|
|
|
! VERSION: flang-new version
|
|
|
|
! VERSION-NEXT: Target:
|
|
|
|
! VERSION-NEXT: Thread model:
|
|
|
|
! VERSION-NEXT: InstalledDir:
|
2020-09-11 17:17:31 +08:00
|
|
|
|
2020-10-06 00:42:00 +08:00
|
|
|
! ERROR: flang-new: error: unsupported option '--versions'; did you mean '--version'?
|
2022-03-29 02:28:51 +08:00
|
|
|
|
|
|
|
! VERSION-FC1: LLVM version
|
|
|
|
|
|
|
|
! ERROR-FC1: error: unknown argument '--version'; did you mean '-version'?
|