[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_event_1.f08
blob51fc54c162a82deb6009079b0ebde2436b3c5b1c
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib -lcaf_single" }
4 ! Check that pr70696 is really fixed.
6   use iso_fortran_env
7   type(event_type) :: x[*]
9   ! exchange must not be called or the link problem before the patch
10   ! does not occur.
11 contains
12   subroutine exchange
13     event post (x[1])
14   end subroutine
15 end