2 ! { dg-options "-std=f2008" }
7 subroutine test_PR50375_3 ()
10 integer, pointer :: pi
13 real, allocatable
:: pr(:)
16 call gen3 (null ()) ! OK
17 end subroutine test_PR50375_3
19 subroutine test_PR50375_2 ()
22 integer, pointer :: pi
28 call gen2 (null ()) ! { dg-error "MOLD= required in NULL|There is no specific subroutine" }
29 end subroutine test_PR50375_2
31 subroutine test_PR34547_3 ()
32 integer, allocatable
:: i(:)
33 print *, NULL(i
) ! { dg-error "Invalid context for NULL" }
34 end subroutine test_PR34547_3