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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [cray_pointers_5.f90] - Rev 154

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" } }

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.