Mercurial > hg > CbC > CbC_llvm
view flang/test/Semantics/if_stmt03.f90 @ 181:df311c476dd5
CreateIdentifierInfo in ParseCbC (not yet worked)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 May 2020 12:30:11 +0900 |
parents | 0572611fdcc8 |
children | 2e18cbf3894f |
line wrap: on
line source
! RUN: %S/test_errors.sh %s %t %f18 ! Check that non-logical expressions are not allowed. ! Check that non-scalar expressions are not allowed. ! TODO: Insure all non-logicals are prohibited. LOGICAL, DIMENSION (2) :: B !ERROR: Must have LOGICAL type, but is REAL(4) IF (A) A = LOG (A) !ERROR: Must be a scalar value, but is a rank-1 array IF (B) A = LOG (A) END