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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [subref_array_pointer_3.f90] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 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.