Merge from mainline
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / ordered-1.c
blobde5e116ebd21e4022f7a5699937c17f226836b36
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp -fdump-tree-ompexp" } */
4 extern void bar(int);
6 void foo (void)
8 #pragma omp ordered
9 bar(0);
11 #pragma omp ordered
13 bar(1);
14 bar(2);
18 /* { dg-final { scan-tree-dump-times "GOMP_ordered_start" 2 "ompexp" } } */
19 /* { dg-final { scan-tree-dump-times "GOMP_ordered_end" 2 "ompexp" } } */
20 /* { dg-final { cleanup-tree-dump "ompexp" } } */