repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
gfortran.dg
/
gomp
/
appendix-a
/
a.33.2.f90
blob
ced23c856b4d87142ffbaa3d1f7dda536a29f03b
1
! { dg-do compile }
2
3
REAL FUNCTION
READ_NEXT
()
4
REAL
,
POINTER
::
TMP
5
!$OMP SINGLE
6
ALLOCATE
(
TMP
)
7
!$OMP END SINGLE COPYPRIVATE (TMP) ! copies the pointer only
8
!$OMP MASTER
9
READ
(
11
)
TMP
10
!$OMP END MASTER
11
!$OMP BARRIER
12
READ_NEXT
=
TMP
13
!$OMP BARRIER
14
!$OMP SINGLE
15
DEALLOCATE
(
TMP
)
16
!$OMP END SINGLE NOWAIT
17
END FUNCTION
READ_NEXT