aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/used_before_typed_5.f90
blob: 9e78e681f48346da374c2706670d3640a6b91f7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do compile }
! { dg-options "-pedantic -std=f95" }

! Check that DIMENSION/POINTER/ALLOCATABLE/INTENT statements *do* allow
! symbols to be typed later.

SUBROUTINE test (a)
  IMPLICIT REAL (a-z)

  ! Those should *not* IMPLICIT-type the symbols:
  INTENT(IN) :: a
  DIMENSION :: b(:)
  POINTER :: c
  ALLOCATABLE :: b

  ! So this is ok:
  INTEGER :: a, b, c

END SUBROUTINE test