blob: 1b1f379522c095eb00bea86cda428d6714d1df25 [file] [log] [blame]
! PR fortran/29759
! { dg-do compile }
PROGRAM test_omp
!$OMP PARALLEL &
!$OMP NUM_THREADS(2)
!$OMP END PARALLEL
!$OMP PARALLEL &
!$OMP & NUM_THREADS(2)
!$OMP END PARALLEL
!$OMP PARALLEL &
!
!$OMP NUM_THREADS(2)
!$OMP END PARALLEL
!$OMP PARALLEL &
!
!$OMP & NUM_THREADS(2)
!$OMP END PARALLEL
!$OMP PARALLEL & ! { dg-error "Failed to match clause" }
!$ NUM_THREADS(2)
!$OMP END PARALLEL ! { dg-error "Unexpected" }
!$OMP PARALLEL & ! { dg-error "Failed to match clause" }
!$ & NUM_THREADS(2) ! { dg-error "Invalid character" }
!$OMP END PARALLEL ! { dg-error "Unexpected" }
!$OMP PARALLEL & ! { dg-error "Failed to match clause" }
!
!$ NUM_THREADS(2)
!$OMP END PARALLEL ! { dg-error "Unexpected" }
!$OMP PARALLEL & ! { dg-error "Failed to match clause" }
!
!$ & NUM_THREADS(2) ! { dg-error "Invalid character" }
!$OMP END PARALLEL ! { dg-error "Unexpected" }
END PROGRAM