summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/coarray_37.f90
blob: 6f56c323d2e4b56b6cc9ab6d1a60ab924d9143b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
! { dg-options "-fcoarray=single" }
!
      program cg
        implicit none
        integer reduce_recv_starts(2)[1,0:*]
        interface
          subroutine conj_grad (reduce_recv_starts) ! { dg-warning "Interface mismatch in global procedure 'conj_grad' at \\(1\\): Corank mismatch in argument 'reduce_recv_starts' \\(2/1\\)" }
            integer   reduce_recv_starts(2)[2, 2:*]
          end subroutine
        end interface
        call conj_grad (reduce_recv_starts) ! Corank mismatch is okay
      end

      subroutine conj_grad (reduce_recv_starts)
        implicit none
        integer reduce_recv_starts(2)[2:*]
      end