diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/pr29955.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/pr29955.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/pr29955.c b/gcc/testsuite/gcc.dg/gomp/pr29955.c new file mode 100644 index 000000000..e49c11cae --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/pr29955.c @@ -0,0 +1,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); +} |