2 ! { dg-options "-Wc-binding-type" }
7 subroutine foo(x
,y
,z
,a
) bind(c
) ! { dg-warning "but may not be C interoperable" }
11 integer(c_float
) :: y
! { dg-warning "C kind type parameter is for type REAL" }
12 complex(c_float
) :: z
! OK, c_float == c_float_complex
13 real(c_float_complex
) :: a
! OK, c_float == c_float_complex
18 integer, parameter :: it
= c_int
19 integer, parameter :: dt
= c_double
20 complex(c_int
), target
:: z1
! { dg-warning "C kind type parameter is for type INTEGER" }
21 complex(it
), target
:: z2
! { dg-warning "C kind type parameter is for type INTEGER" }
22 complex(c_double
), target
:: z3
! OK
23 complex(dt
), target
:: z4
! OK