This change allows the flang CLI to accept `-W[no-]<feature>` flags matching the clang syntax and enable and disable usage and language feature warnings.
8 lines
324 B
Fortran
8 lines
324 B
Fortran
! Ensure that only argument -Werror is supported.
|
|
|
|
! RUN: not %flang_fc1 -fsyntax-only -Wall %s 2>&1 | FileCheck %s --check-prefix=WRONG1
|
|
! RUN: not %flang_fc1 -fsyntax-only -WX %s 2>&1 | FileCheck %s --check-prefix=WRONG2
|
|
|
|
! WRONG1: error: Unknown diagnostic option: -Wall
|
|
! WRONG2: error: Unknown diagnostic option: -WX
|