view gcc/testsuite/gfortran.dg/coarray_event_1.f08 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { 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