5 ! Check whether type-compatibility checks for BIND(C) work.
7 ! Contributed by Richard Maine
13 FUNCTION liter_cb(link_info
) bind(C
)
17 INTEGER(c_int
) liter_cb
19 TYPE, bind(C
) :: info_t
20 INTEGER(c_int
) :: type
23 TYPE(info_t
) :: link_info
29 END MODULE liter_cb_mod
34 FUNCTION liter_cb(link_info
) bind(C
)
37 INTEGER(c_int
) liter_cb
38 TYPE, bind(C
) :: info_t
39 INTEGER(c_int
) :: type
41 TYPE(info_t
) :: link_info
45 TYPE, bind(C
) :: info_t
46 INTEGER(c_int
) :: type
48 type(info_t
) :: link_info
50 write (*,*) liter_cb(link_info
)