2 920810-1.c from the execute part of the gcc torture suite.
15 #if !defined(__SDCC_pdk14) // Lack of memory
16 typedef struct { void* super
; int name
; int size
; } t
;
18 t
* f(t
*clas
, int size
)
20 t
* child
= (t
*)malloc(size
);
21 memcpy(child
, clas
, clas
->size
);
30 testTortureExecute (void)
32 #if !defined(__SDCC_pdk14) // Lack of memory
34 memset(&foo
, 37, sizeof(t
));
36 bar
=f(&foo
,sizeof(t
));
37 ASSERTFALSE (bar
->super
!=&foo
||bar
->name
!=0||bar
->size
!=sizeof(t
));