]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/gomp/for-4.C
989d4b2a8f3e9e609670d7666c6811e1d86bd08e
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / gomp / for-4.C
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp -fdump-tree-ompexp" } */
3
4 extern void bar(int);
5
6 void foo (int n)
7 {
8 int i;
9
10 #pragma omp for schedule(dynamic)
11 for (i = 0; i < n; ++i)
12 bar(i);
13 }
14
15 /* { dg-final { scan-tree-dump-times "GOMP_loop_dynamic_start" 1 "ompexp" } } */
16 /* { dg-final { scan-tree-dump-times "GOMP_loop_dynamic_next" 1 "ompexp" } } */