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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_assign_1.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests fix for PR20838 - would ICE with vector subscript in
3
! pointer assignment.
4
!
5
! Contributed by Paul Thomas  
6
!
7
  integer, parameter, dimension(3) :: i = (/2,1,3/)
8
  integer, dimension(3), target   :: tar
9
  integer, dimension(2, 3), target   :: tar2
10
  integer, dimension(:), pointer  :: ptr
11
  ptr => tar
12
  ptr => tar(3:1:-1)
13
  ptr => tar(i)     ! { dg-error "with vector subscript" }
14
  ptr => tar2(1, :)
15
  ptr => tar2(2, i) ! { dg-error "with vector subscript" }
16
  end
17
 

powered by: WebSVN 2.1.0

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