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
Support -std=f2018
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.fortran
/
pr32550.f90
blob
2c95cc6e05edc7aad2151129f2684baa97c8ee62
1
! PR fortran/32550
2
! { dg-do run }
3
! { dg-require-effective-target tls_runtime }
4
5
integer
,
pointer
,
save
::
ptr
6
integer
,
target
::
targ
7
integer
::
e
8
!$omp threadprivate(ptr)
9
e
=
0
10
targ
=
42
11
!$omp parallel shared(targ)
12
!$omp single
13
ptr
=>
targ
14
!$omp end single copyprivate(ptr)
15
if
(
ptr
.
ne
.42
)
then
16
!$omp atomic
17
e
=
e
+
1
18
end if
19
!$omp end parallel
20
if
(
e
.
ne
.0
)
call
abort
21
end