llvm-project/flang/test/Driver/werror-wrong.f90
Andre Kuhlenschmidt bf60aa1c55
[flang][cli] Add diagnostic flags to the CLI (#142022)
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.
2025-06-10 06:41:13 -07:00

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