re PR c/29955 (ICE with -fopenmp -fexceptions)
[gcc.git] / gcc / testsuite / gcc.dg / gomp / pr29955.c
1 /* PR c/29955 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fopenmp -fexceptions" } */
4
5 extern void bar (int);
6
7 void
8 foo (int n)
9 {
10 int i;
11 #pragma omp parallel for schedule(dynamic)
12 for (i = 0; i < n; i++)
13 bar (0);
14 }