2 20071030-1.c from the execute part of the gcc torture suite.
9 #pragma disable_warning 93
15 /* Originator: Tim McGrath <misty-@charter.net> */
16 /* Testcase contributed by Eric Botcazou <ebotcazou@libertysurf.fr> */
18 /* Testcase copied from gcc.target/i386/loop-3.c */
20 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
23 unsigned char colormod
;
29 entity_state_t
*entities
;
36 packet_entities_t entities
;
48 typedef struct client_s
50 sv_client_state_t state
;
52 client_frame_t frames
[64];
55 int CalcPing (client_t
*cl
)
59 register client_frame_t
*frame
;
61 if (cl
->state
== cs_server
)
65 for (frame
= cl
->frames
, i
= 0; i
< 64; i
++, frame
++) {
66 if (frame
->ping_time
> 0) {
67 ping
+= frame
->ping_time
;
79 void testTortureExecute(void)
81 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) && !( (defined (__SDCC_mos6502) || defined(__SDCC_mos65c02 )) && defined(__SDCC_STACK_AUTO) )// Lack of memory
84 memset(&cl
, 0, sizeof(cl
));
86 cl
.frames
[0].ping_time
= 1.0f
;
88 if (CalcPing(&cl
) != 1000)