[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / if_stmt03.f90
blob3d012477389ec48dff07f04f365217f93e252c24
1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
2 ! REQUIRES: shell
3 ! Check that non-logical expressions are not allowed.
4 ! Check that non-scalar expressions are not allowed.
5 ! TODO: Insure all non-logicals are prohibited.
7 LOGICAL, DIMENSION (2) :: B
9 !ERROR: Must have LOGICAL type, but is REAL(4)
10 IF (A) A = LOG (A)
11 !ERROR: Must be a scalar value, but is a rank-1 array
12 IF (B) A = LOG (A)
14 END