Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/coarray_stat_2.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } ! { dg-additional-options "-latomic" { target libatomic_available } } ! ! Support for stat= in caf reference ! program whitespace implicit none integer :: me[*],tmp,stat me = this_image() stat = 0 sync all(stat = stat) if(stat /= 0) write(*,*) 'failure during sync' stat = 42 tmp = me[num_images(),stat = stat] if(stat /= 0) call abort() end program whitespace