These tests were introduced when the Flang driver was originally incepted. Back then, `flang-new` only supported a handful of basic options (e.g. `-v`, `-help`, `-E`) and those `-help` tests were used to guard against Clang options "leaking" into `flang-new -help`. With the introduction of the concept of "visibility" (see https://reviews.llvm.org/D157837 and https://reviews.llvm.org/D157151), these tests are effectively redundant. Also, with the number of flags growing, these tests are getting rather brittle.
16 lines
454 B
Fortran
16 lines
454 B
Fortran
! RUN: %flang -help 2>&1 | FileCheck %s --check-prefix=HELP
|
|
! RUN: not %flang -helps 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
|
|
! RUN: %flang_fc1 -help 2>&1 | FileCheck %s --check-prefix=HELP-FC1
|
|
! RUN: not %flang_fc1 -helps 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
|
|
! HELP:USAGE: flang
|
|
! HELP-EMPTY:
|
|
! HELP-NEXT:OPTIONS:
|
|
|
|
! HELP-FC1:USAGE: flang
|
|
! HELP-FC1-EMPTY:
|
|
! HELP-FC1-NEXT:OPTIONS:
|
|
|
|
! ERROR: error: unknown argument '-helps'; did you mean '-help'
|