diff --git a/gcc/testsuite/gfortran.dg/gomp/requires-4.f90 b/gcc/testsuite/gfortran.dg/gomp/requires-4.f90 index e0eb4dbc603d..0dc5e69da042 100644 --- a/gcc/testsuite/gfortran.dg/gomp/requires-4.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/requires-4.f90 @@ -26,8 +26,8 @@ program main !$omp requires reverse_offload contains subroutine foo - !$target - !$end target + !$omp target + !$omp end target end subroutine subroutine bar !$omp requires unified_addres ! { dg-error "must appear in the specification part of a program unit" }