flang/test/Driver/wextra-ok.f90
raw| 1 | ! Ensure that supplying -Wextra into flang-new does not raise error |
| 2 | ! The first check should be changed if -Wextra is implemented |
| 3 | |
| 4 | ! RUN: %flang -std=f2018 -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-OK |
| 5 | ! RUN: not %flang -std=f2018 -Wblah -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=WRONG |
| 6 | |
| 7 | ! CHECK-OK: the warning option '-Wextra' is not supported |
| 8 | ! WRONG: Only `-Werror` is supported currently. |
| 9 | |
| 10 | program wextra_ok |
| 11 | end program wextra_ok |