summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/pr29955.c
blob: e49c11cae1dd4993f4faf7a14f5962a59aa8e95d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR c/29955 */
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp -fexceptions" } */

extern void bar (int);

void
foo (int n)
{
  int i;
#pragma omp parallel for schedule(dynamic)
  for (i = 0; i < n; i++)
    bar (0);
}