1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
! { dg-do compile } SUBROUTINE WORK(I, J) INTEGER I,J END SUBROUTINE WORK SUBROUTINE A6_WRONG INTEGER I, J DO 100 I = 1,10 !$OMP DO DO 100 J = 1,10 CALL WORK(I,J) 100 CONTINUE !$OMP ENDDO ! { dg-error "Unexpected ..OMP END DO statement" } END SUBROUTINE A6_WRONG