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

Subversion Repositories openrisc

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

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

! { dg-do compile }
!
! PR fortran/45745
! ICE with {L,U}BOUND intrinsic function as vector subscript on derived
! type component. 
!
! Original test by Joost Van de Vondele <Joost.VandeVondele@pci.uzh.ch>

MODULE pw_types
  TYPE pw_type
     REAL, DIMENSION ( : ), POINTER :: cr
  END TYPE pw_type
CONTAINS
  SUBROUTINE pw_write(pw)
    TYPE(pw_type), INTENT(in) :: pw
    PRINT *, pw%cr(LBOUND(pw%cr))
    PRINT *, pw%cr(UBOUND(pw%cr))
  END SUBROUTINE pw_write
END MODULE

! { dg-final { cleanup-modules "pw_types" } }

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.