Debian Codegraph @

gcc/testsuite/gcc.dg/gomp/pr29955.c

raw
1 /* PR c/29955 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fopenmp -fexceptions" } */
4 /* { dg-require-effective-target exceptions } */
5
6 extern void bar (int);
7
8 void
9 foo (int n)
10 {
11 int i;
12 #pragma omp parallel for schedule(dynamic)
13 for (i = 0; i < n; i++)
14 bar (0);
15 }