We currently spell check options that are listed as unsupported, but this doesn't make much sense. If an option is explicitly unsupported why would one that's spelled similarly be useful? It looks like the reason this was added was that we explicitly mark all `--something` flags as Unsupported rather than just leaving them undefined and treating them as unknown. Drop that handling so that we don't regress on things like misspelling `--help`. Differential Revision: https://reviews.llvm.org/D156925
17 lines
593 B
Fortran
17 lines
593 B
Fortran
|
|
! RUN: %flang --version 2>&1 | FileCheck %s --check-prefix=VERSION
|
|
! RUN: not %flang --versions 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
! 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
|
|
|
|
! VERSION: flang-new version
|
|
! VERSION-NEXT: Target:
|
|
! VERSION-NEXT: Thread model:
|
|
! VERSION-NEXT: InstalledDir:
|
|
|
|
! ERROR: flang-new: error: unknown argument '--versions'; did you mean '--version'?
|
|
|
|
! VERSION-FC1: LLVM version
|
|
|
|
! ERROR-FC1: error: unknown argument '--version'; did you mean '-version'?
|