Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
sink-2.c
blob: e781a6fd9459e700e55e352b1cf7ae942f02eda7 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
void
bar
(
int
*);
void
foo
()
{
int
i
,
j
;
#pragma
omp parallel
for
ordered
(
1
)
for
(
i
=
0
;
i
<
100
;
++
i
)
{
#pragma
omp ordered depend
(
sink
:
i
-
1
)
bar
(&
i
);
#pragma
omp ordered depend
(
source
)
}
}