aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/coarray_35a.f90
blob: 1b954a94929f675a63328aa84140233f55ab7a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
! { dg-do compile }
! { dg-options "-fcoarray=lib" }
! { dg-compile-aux-modules "coarray_35.f90" }
!
! Check that the coarray declared in the module is accessible
! by checking the assembler name
!
! Contributed by Alessandro Fanfarillo.
!
program testmod
  use global_coarrays
  implicit none
  
  integer :: me

  me = this_image()

  b = me

  if(me==1) then
     b(:) = b(:)[2]
     write(*,*) b
  end if

end program testmod

! Check for the symbol of the coarray token (w/o system-dependend prefix)
! { dg-final { scan-assembler "caf_token__global_coarrays_MOD_b" } }
! { dg-final { cleanup-modules "global_coarrays" } }