1! { dg-do compile } 2! { dg-options "-fcoarray=lib -lcaf_single" } 3 4! Check that pr79866 is really fixed. 5 6 use iso_fortran_env 7 type(event_type) :: x ! { dg-error "of type EVENT_TYPE or with subcomponent of type EVENT_TYPE must be a coarray" } 8 9contains 10 subroutine exchange 11 event post (x[1]) ! { dg-error "Syntax error in EVENT POST statement at .1." } 12 end subroutine 13end 14