summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/coarray_event_1.f08
blob: 51fc54c162a82deb6009079b0ebde2436b3c5b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! { dg-options "-fcoarray=lib -lcaf_single" }

! Check that pr70696 is really fixed.

  use iso_fortran_env
  type(event_type) :: x[*]

  ! exchange must not be called or the link problem before the patch
  ! does not occur.
contains
  subroutine exchange
    event post (x[1])
  end subroutine
end