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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
lastprivate-conditional-4.c
blob
d87c7982b2693c4c72c38e950eee1aae609c2aed
1
int
x
=
6
,
w
=
8
;
2
int
bar
(
int
);
3
4
void
5
foo
()
6
{
7
int
y
=
5
,
i
;
8
#pragma omp teams num_teams(1) firstprivate (x) shared (y) shared (w)
9
{
10
int
z
=
7
;
11
#pragma omp parallel for firstprivate (x, y, z, w) lastprivate (conditional: x, y, z, w)
12
for
(
i
=
0
;
i
<
64
;
i
++)
13
if
(
bar
(
i
))
14
{
15
x
=
i
;
16
y
=
i
+
1
;
17
z
=
i
+
2
;
18
w
=
i
+
3
;
19
}
20
bar
(
y
);
21
bar
(
z
);
22
}
23
}