2 pr33870.c from the execute part of the gcc torture tests.
13 typedef struct PgHdr PgHdr
;
14 typedef unsigned char u8
;
17 PgHdr
*pNextHash
, *pPrevHash
;
18 PgHdr
*pNextFree
, *pPrevFree
;
22 PgHdr
*pDirty
, *pPrevDirty
;
26 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined (__SDCC_pdk15) // Lack of memory
27 static inline PgHdr
*merge_pagelist(PgHdr
*pA
, PgHdr
*pB
)
33 if( pA
->pgno
<pB
->pgno
){
53 PgHdr
*sort_pagelist(PgHdr
*pIn
)
57 memset (a
, 0, sizeof (a
));
62 for(i
=0; i
<25 -1; i
++){
67 p
= merge_pagelist(a
[i
], p
);
72 a
[i
] = merge_pagelist(a
[i
], p
);
77 p
= merge_pagelist (p
, a
[i
]);
84 testTortureExecute (void)
86 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined (__SDCC_pdk15) // Lack of memory
97 p
= sort_pagelist (&a
[0]);