PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_event_2.f08
blob20a37f332fb7e2cefd1e79390e28a17aeffeb3ea
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib -lcaf_single" }
4 ! Check that pr79866 is really fixed.
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" }
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