blob: de5e116ebd21e4022f7a5699937c17f226836b36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { 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" } } */
|