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