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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [crayptr5.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-fopenmp -fcray-pointer" }
3
!
4
! PR fortran/43985
5
 
6
subroutine pete(A)
7
  real(8) :: A
8
  print *, 'pete got ',A
9
  if (A /= 3.0) call abort()
10
end subroutine pete
11
 
12
       subroutine bob()
13
         implicit none
14
         real(8) peted
15
         pointer (ipeted, peted(*))
16
         integer(4) sz
17
         ipeted = malloc(5*8)
18
         peted(1:5) = [ 1.,2.,3.,4.,5.]
19
         sz = 3
20
!$omp parallel default(shared)
21
         call pete(peted(sz))
22
!$omp end parallel
23
         return
24
       end subroutine bob
25
 
26
call bob()
27
end

powered by: WebSVN 2.1.0

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