view gcc/testsuite/gfortran.dg/pr66545_1.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-Wall" }
! PR fortran/66545
!
subroutine p
   complex, parameter :: c1 = (c1) ! { dg-error "before its definition" }
   complex, parameter :: c2 = c2   ! { dg-error "before its definition" }
   complex :: c3 = (c3)            ! { dg-error "has not been declared or is a variable" }
   complex :: c4 = c4              ! { dg-error "has not been declared or is a variable" }
end subroutine p

subroutine q
   real, parameter :: r1 = (r1)  ! { dg-error "before its definition" }
   real, parameter :: r2 = r2    ! { dg-error "before its definition" }
   real :: r3 = (r3)             ! { dg-error "has not been declared or is a variable" }
   real :: r4 = r4               ! { dg-error "has not been declared or is a variable" }
end subroutine q