PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr59917-2.c
blob1d603422f6640c17cf5fff8da88e28c0c51458f2
1 /* PR middle-end/59917 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fopenmp" } */
5 struct J { long buf[8]; };
6 extern int setjmp (struct J[1]);
7 void foo (int);
9 void
10 bar (void)
12 int k;
13 foo (-1);
14 #pragma omp parallel
15 for (k = 0; k < 10; ++k)
17 struct J j[1];
18 if (setjmp (j) == 0)
19 foo (k);
21 foo (-2);