1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Check that if constructs only accept scalar logical expressions.
3 ! TODO: expand the test to check this restriction for more types.
6 LOGICAL, DIMENSION (2) :: B
8 !ERROR: Must be a scalar value, but is a rank-1 array
13 !ERROR: Must be a scalar value, but is a rank-1 array
20 !ERROR: Must be a scalar value, but is a rank-1 array
23 !ERROR: Must be a scalar value, but is a rank-1 array
28 !ERROR: Must be a scalar value, but is a rank-1 array
31 !ERROR: Must be a scalar value, but is a rank-1 array
34 !ERROR: Must be a scalar value, but is a rank-1 array
39 !ERROR: Must be a scalar value, but is a rank-1 array
42 !ERROR: Must be a scalar value, but is a rank-1 array
49 !ERROR: Must be a scalar value, but is a rank-1 array
52 !ERROR: Must be a scalar value, but is a rank-1 array
55 !ERROR: Must be a scalar value, but is a rank-1 array
61 !ERROR: Must have LOGICAL type, but is INTEGER(4)
66 !ERROR: Must have LOGICAL type, but is INTEGER(4)
73 !ERROR: Must have LOGICAL type, but is INTEGER(4)
76 !ERROR: Must have LOGICAL type, but is INTEGER(4)
81 !ERROR: Must have LOGICAL type, but is INTEGER(4)
84 !ERROR: Must have LOGICAL type, but is INTEGER(4)
87 !ERROR: Must have LOGICAL type, but is INTEGER(4)
92 !ERROR: Must have LOGICAL type, but is INTEGER(4)
95 !ERROR: Must have LOGICAL type, but is INTEGER(4)
102 !ERROR: Must have LOGICAL type, but is INTEGER(4)
105 !ERROR: Must have LOGICAL type, but is INTEGER(4)
108 !ERROR: Must have LOGICAL type, but is INTEGER(4)
113 !ERROR: Must have LOGICAL type, but is REAL(4)