1 ! Ensures that -Werror is read regardless of whether or not other -W
2 ! flags are present in the CLI args
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
7 ! WRONG: Semantic errors in
8 ! CHECK-OK: FORALL index variable
10 program werror_check_all
12 forall (j
=1:n
) a(i
) = 1
13 end program werror_check_all