Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/coarray_40.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +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