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
2018-02-28 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.fortran
/
allocatable3.f90
blob
fe3714a2b1ff80134ba08961102b6c0fc89c15c1
1
! { dg-do run }
2
3
integer
,
allocatable
::
a
(:)
4
integer
::
i
5
logical
::
l
6
l
= .
false
.
7
if
(
allocated
(
a
))
call
abort
8
!$omp parallel private (a) reduction (.or.:l)
9
allocate
(
a
(-
7
:-
5
))
10
l
=
l
.
or
..
not
.
allocated
(
a
)
11
l
=
l
.
or
.
size
(
a
).
ne
.3
.
or
.
size
(
a
,
1
).
ne
.3
12
a
(:) =
0
13
!$omp do private (a)
14
do
i
=
1
,
7
15
a
(:) =
i
16
l
=
l
.
or
.
any
(
a
.
ne
.
i
)
17
end do
18
l
=
l
.
or
.
any
(
a
.
ne
.0
)
19
deallocate
(
a
)
20
!$omp end parallel
21
end