view gcc/testsuite/gfortran.dg/coarray_event_2.f08 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-fcoarray=lib -lcaf_single" }

! Check that pr79866 is really fixed.

  use iso_fortran_env
  type(event_type) :: x ! { dg-error "of type EVENT_TYPE or with subcomponent of type EVENT_TYPE must be a coarray" }

contains
  subroutine exchange
    event post (x[1]) ! { dg-error "Syntax error in EVENT POST statement at .1." }
  end subroutine
end