3 ! Test for PR 35150, reduced testcases by Tobias Burnus
6 use, intrinsic :: iso_c_binding
9 subroutine sub1(argv) bind(c,name="sub1")
10 type(c_ptr), intent(in) :: argv
14 type(c_ptr), dimension(1), target :: argv = c_null_ptr
15 character(c_char), dimension(1), target :: s = c_null_char
16 call sub1(c_loc(argv))
22 type(c_ptr), target, save :: argv
24 subroutine sub1(argv) bind(c)
26 type(c_ptr), intent(in) :: argv
29 call sub1(c_loc(argv))