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] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! { dg-options "-fcray-pointer -fno-strict-aliasing" }
3
 
4
module cray_pointers_5
5
  integer :: var (10), arr(100)
6
  pointer (ipt, var)
7
end module cray_pointers_5
8
 
9
  use cray_pointers_5
10
  integer :: i
11
 
12
  forall (i = 1:100) arr(i) = i
13
  ipt = loc (arr)
14
  if (any (var .ne. (/1, 2, 3, 4, 5, 6, 7, 8, 9, 10/))) call abort
15
end
16
 
17
! { dg-final { cleanup-modules "cray_pointers_5" } }

powered by: WebSVN 2.1.0

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