1 #include <ISO_Fortran_binding.h>
4 test_c (CFI_cdesc_t
*x
, size_t n
, int num
)
8 if (x
->version
!= CFI_VERSION
)
12 if (x
->attribute
!= CFI_attribute_other
)
14 if (x
->dim
[0].lower_bound
!= 0)
16 if (x
->dim
[0].extent
!= 3)
19 if (x
->elem_len
!= n
|| x
->dim
[0].sm
!= n
)
22 if (num
== 1 && x
->type
!= CFI_type_int16_t
)
24 if (num
== 2 && x
->type
!= CFI_type_double_Complex
)