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)
}
}