3 use, intrinsic :: iso_c_binding, only: c_int
6 ! warning for my_param possibly not being C interoperable
7 subroutine my_c_sub(my_param) bind(c) ! { dg-warning "may not be C interoperable" }
8 integer, value :: my_param
9 end subroutine my_c_sub
11 ! warning for my_c_func possibly not being a C interoperable kind
12 ! warning for my_param possibly not being C interoperable
13 ! error message truncated to provide an expression that both warnings
15 function my_c_func(my_param) bind(c) ! { dg-warning "may not be" }
16 integer, value :: my_param
18 end function my_c_func
22 ! warning for my_param possibly not being C interoperable
23 subroutine my_f03_sub(my_param) bind(c) ! { dg-warning "may not be" }
24 integer, value :: my_param
25 end subroutine my_f03_sub
27 ! warning for my_f03_func possibly not being a C interoperable kind
28 ! warning for my_param possibly not being C interoperable
29 ! error message truncated to provide an expression that both warnings
31 function my_f03_func(my_param) bind(c) ! { dg-warning "may not be" }
32 integer, value :: my_param
33 integer :: my_f03_func
35 end function my_f03_func
37 end module bind_c_procs
39 ! { dg-final { cleanup-modules "bind_c_procs" } }