blob: d16c9ffb79afa0e4c53f92d8f3f9ea54577acc17 (
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
|
! { dg-do compile }
! { dg-options "-fcheck=pointer -fdump-tree-original" }
!
! PR fortran/99602
!
module m
implicit none
contains
subroutine wr(y)
class(*), pointer :: y
if (associated (y)) stop 1
end
end module m
use m
implicit none
class(*), pointer :: cptr
nullify (cptr)
call wr(cptr)
end
! { dg-final { scan-tree-dump-not "_gfortran_runtime_error_at" "original" } }
! { dg-final { scan-tree-dump-not "Pointer actual argument" "original" } }
|