summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/for-24.c
blob: d04d82a6c008b5922d0748a5c04a27950c33d7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp -fdump-tree-ssa" } */

extern void bar(int);

void foo (void)
{
  int i;

  #pragma omp parallel for schedule (nonmonotonic : dynamic, 4)
  for (i = 0; i < 37; ++i)
    bar(i);
}

/* { dg-final { scan-tree-dump-times "GOMP_parallel_loop_nonmonotonic_dynamic" 1 "ssa" } } */
/* { dg-final { scan-tree-dump-times "GOMP_loop_nonmonotonic_dynamic_start" 0 "ssa" } } */
/* { dg-final { scan-tree-dump-times "GOMP_loop_nonmonotonic_dynamic_next" 2 "ssa" } } */