OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [used_before_typed_5.f90] - Rev 749

Go to most recent revision | Compare with Previous | Blame | View Log

! { 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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.