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

Subversion Repositories openrisc

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

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do run }
! { dg-options "-fcray-pointer -fno-strict-aliasing" }

module cray_pointers_5
  integer :: var (10), arr(100)
  pointer (ipt, var)
end module cray_pointers_5

  use cray_pointers_5
  integer :: i

  forall (i = 1:100) arr(i) = i
  ipt = loc (arr)
  if (any (var .ne. (/1, 2, 3, 4, 5, 6, 7, 8, 9, 10/))) call abort
end

! { dg-final { cleanup-modules "cray_pointers_5" } }

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.