21 lines
409 B
C
21 lines
409 B
C
/* { dg-do compile } */
|
|
/* { dg-options "-fopenmp -fdump-tree-ompexp" } */
|
|
|
|
extern void bar(int);
|
|
|
|
void foo (void)
|
|
{
|
|
#pragma omp ordered
|
|
bar(0);
|
|
|
|
#pragma omp ordered
|
|
{
|
|
bar(1);
|
|
bar(2);
|
|
}
|
|
}
|
|
|
|
/* { dg-final { scan-tree-dump-times "GOMP_ordered_start" 2 "ompexp" } } */
|
|
/* { dg-final { scan-tree-dump-times "GOMP_ordered_end" 2 "ompexp" } } */
|
|
/* { dg-final { cleanup-tree-dump "ompexp" } } */
|