2 ! { dg-options "-fcheck=pointer" }
3 ! { dg-shouldfail "Unassociated/unallocated actual argument" }
5 ! { dg-output ".*At line 60.*Pointer actual argument 'ptr1' is not associated" }
9 ! Run-time check of passing deallocated/nonassociated actuals
10 ! to nonallocatable/nonpointer dummies.
12 ! Check for variable actuals
33 external :: test1
, test2
, ppTest
34 integer, pointer :: ptr1
, ptr2(:)
35 integer, allocatable
:: alloc2(:)
36 procedure(), pointer :: pptr
38 allocate(ptr1
,ptr2(2),alloc2(2))
79 print *, 'Hello World'
85 end subroutine ppTest2
86 end Program RunTimeCheck