OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_assign_1.f90] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do compile }
! Tests fix for PR20838 - would ICE with vector subscript in 
! pointer assignment.
!
! Contributed by Paul Thomas  <pault@gcc.gnu.org>
!
  integer, parameter, dimension(3) :: i = (/2,1,3/)
  integer, dimension(3), target   :: tar
  integer, dimension(2, 3), target   :: tar2
  integer, dimension(:), pointer  :: ptr
  ptr => tar
  ptr => tar(3:1:-1)
  ptr => tar(i)     ! { dg-error "with vector subscript" }
  ptr => tar2(1, :)
  ptr => tar2(2, i) ! { dg-error "with vector subscript" }
  end

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.