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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [subref_array_pointer_3.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 the fix for PR35470, in which the pointer assignment would fail
3
! because the assumed size 'arr' would get mixed up with the component
4
! 'p' in the check for the upper bound of an assumed size array.
5
!
6
! Contributed by Antony Lewis 
7
!
8
subroutine sub(arr)
9
  type real_pointer
10
    real, pointer :: p(:)
11
  end type real_pointer
12
  type(real_pointer), dimension(*) :: arr
13
  real, pointer :: p(:)
14
  p => arr(1)%p
15
end subroutine

powered by: WebSVN 2.1.0

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