Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray_event_2.f08

raw
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
9 contains
10 subroutine exchange
11 event post (x[1]) ! { dg-error "Syntax error in EVENT POST statement at .1." }
12 end subroutine
13 end