Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/coarray_40.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +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 } } ! ! Run-time test for memory consistency ! ! Contributed by Deepak Eachempati program cp_bug implicit none integer :: v1, v2, u[*] integer :: me me = this_image() u = 0 v1 = 10 v1 = u[me] ! v2 should get value in u (0) v2 = v1 if(v2 /= u) call abort() end program