1 #include <ISO_Fortran_binding.h>
5 /* Part of the test for the fix of PR88929 - see ISO_Fortran_binding_3.f90. */
7 int c_test (CFI_cdesc_t
* a_desc
)
11 int err
= 1; /* this error code represents all errors */
13 if (a_desc
->rank
!= 2)
16 if (a_desc
->type
!= CFI_type_int
)
20 for (idx
[0] = 0; idx
[0] < a_desc
->dim
[0].extent
; idx
[0]++)
21 for (idx
[1] = 0; idx
[1] < a_desc
->dim
[1].extent
; idx
[1]++)
23 res_addr
= CFI_address (a_desc
, idx
);
25 *res_addr
= *res_addr
+ 1;
28 if (err
!= 10) return 1;