flang/test/Driver/werror-all.f90
raw| 1 | ! Ensures that -Werror is read regardless of whether or not other -W |
| 2 | ! flags are present in the CLI args |
| 3 | |
| 4 | ! RUN: not %flang -std=f2018 -Werror -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=WRONG |
| 5 | ! RUN: %flang -std=f2018 -Wextra -Wall %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-OK |
| 6 | |
| 7 | ! WRONG: Semantic errors in |
| 8 | ! CHECK-OK: FORALL index variable |
| 9 | |
| 10 | program werror_check_all |
| 11 | integer :: a(3) |
| 12 | forall (j=1:n) a(i) = 1 |
| 13 | end program werror_check_all |