aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/coarray/array_temporary-1.f90
blob: 454929cf53baf0ca321c1a35b0630dbcf8b2b38b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! PR fortran/99010
!
! Follow-up to PR fortran/98913
!
! Contributed by G. Steinmetz
!
program p
   integer :: x[*]
   x = this_image()
   if ( this_image() == 2 ) then
      x = x[1]
   end if
end