OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / gomp / ordered-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp -fdump-tree-ompexp" } */
3
4 extern void bar(int);
5
6 void foo (void)
7 {
8   #pragma omp ordered
9     bar(0);
10
11   #pragma omp ordered
12   {
13     bar(1);
14     bar(2);
15   }
16 }
17
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" } } */