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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_1.f90] - Rev 694

Compare with Previous | Blame | View Log

! Testcase for PR34770
! { dg-do run }
  implicit none
  integer, target :: x(0:12)
  integer, pointer :: z(:)
  integer i
  do i = 0,12
    x(i) = i
  enddo
  z => x
  do i = 0,12
    if (x(i) /= i .or. z(i) /= i) call abort
  enddo
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.