[clang][bytecode] Reject memcpy dummy pointers after null check (#118460)
[llvm-project.git] / flang / test / Driver / werror-all.f90
blob6d8c03510276c6ebdde58563bfe386aaa15d85e2
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
11 integer :: a(3)
12 forall (j=1:n) a(i) = 1
13 end program werror_check_all