summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/null_4.f90
blob: dbbb681b801e9b9cc7a97b1e9d6335c5b69e96f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do run }
!
! PR fortran/42936
!
! Contributed by Mat Cross
!
PROGRAM PASSES_NULL
  CALL SUB(NULL())
CONTAINS
  SUBROUTINE SUB(I)
    INTEGER, POINTER :: I(:,:,:)
    IF (ASSOCIATED (I)) CALL ABORT ()
  END SUBROUTINE SUB
END PROGRAM PASSES_NULL