2 20090113-1.c from the execute part of the gcc torture tests.
11 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
12 typedef struct descriptor_dimension
17 } descriptor_dimension
;
21 descriptor_dimension dim
[7];
25 msum_i4 (gfc_array_i4
* const retarray
,
26 gfc_array_i4
* const array
,
27 const int * const pdim
)
38 len
= array
->dim
[dim
].ubound
+ 1 - array
->dim
[dim
].lbound
;
40 for (n
= 0; n
< dim
; n
++)
42 extent
[n
] = array
->dim
[n
].ubound
+ 1 - array
->dim
[n
].lbound
;
46 dest
= retarray
->data
;
53 for (n
= 0; n
< len
; n
++, base
++)
60 while (count
[0] != extent
[0]);
65 testTortureExecute (void)
67 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
70 gfc_array_i4 retarray
= { rdata
, 265, { { 1, 1, 3 } } };
71 gfc_array_i4 array
= { adata
, 266, { { 1, 1, 3 }, { 3, 1, 3 } } };
73 msum_i4 (&retarray
, &array
, &dim
);