Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/imperfect1.f90

raw
1 ! This test case is expected to fail due to errors.
2
3 subroutine f1 (depth, iter)
4 integer :: depth, iter
5 end subroutine
6
7 subroutine f2 (depth, iter)
8 integer :: depth, iter
9 end subroutine
10
11 subroutine s1 (a1, a2, a3)
12 integer :: a1, a2, a3
13 integer :: i, j, k
14
15 !$omp do collapse(3)
16 do i = 1, a1
17 call f1 (1, i)
18 do j = 1, a2
19 call f1 (2, j)
20 if (i == 3) then
21 cycle ! { dg-error "CYCLE statement" }
22 else
23 exit ! { dg-error "EXIT statement" }
24 endif
25 !$omp barrier ! { dg-error "OpenMP directive in intervening code" }
26 do k = 1, a3
27 call f1 (3, k)
28 call f2 (3, k)
29 end do
30 call f2 (2, j)
31 end do
32 do k = 1, a3 ! { dg-error "loop in intervening code" }
33 call f1 (3, k)
34 call f2 (3, k)
35 end do
36 call f2 (1, i)
37 end do
38
39 end subroutine