PR middle-end/83977
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / pr83977.f90
blobb8ad1a7e39c184fd084658477b183fc93071b357
1 ! PR middle-end/83977
2 ! { dg-do compile }
4 integer function foo (a, b)
5 integer :: a, b
6 !$omp declare simd uniform(b) linear(ref(a):b)
7 a = a + 1
8 ! This function can't be called from simd loops,
9 ! because it violates declare simd restrictions.
10 ! We shouldn't ICE on it though, nor attempt to generate
11 ! simd clones for the *omp_fn* functions.
12 !$omp parallel
13 call sub
14 !$omp end parallel
15 end