aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/null_actual_3.f90
blob: ea49f9630c96889f2dee6d5f93a2b0ca66600118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
! { dg-options "-fallow-argument-mismatch -w" }
! PR fortran/107576
! Contributed by G.Steinmetz

program p
  implicit none
  interface
     subroutine r(y)
       integer, pointer :: y(:)
     end subroutine r
  end interface
  integer, pointer :: z(:) => null()
  call r(z)
  call s(z)
  call r(null(z))
  call s(null(z)) ! { dg-error "requires an explicit interface" }
end