Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/coarray_40.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
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) STOP 1 end program