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

Subversion Repositories openrisc

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

Go to most recent revision | 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

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.