2 980223.c from the execute part of the gcc torture suite.
11 // TODO: Enable when sdcc can return struct!
13 typedef struct { char *addr
; long type
; } object
;
15 object
bar (object blah
)
20 object
foo (object x
, object y
)
22 object z
= *(object
*)(x
.addr
);
25 y
= *(object
*)(z
.addr
+sizeof(object
));
26 z
= *(object
*)(z
.addr
);
34 object cons1
[2] = { {(char *) &nil
, 0}, {(char *) &nil
, 0} };
35 object cons2
[2] = { {(char *) &cons1
, 64}, {(char *) &nil
, 0} };
39 testTortureExecute (void)
42 object x
= {(char *) &cons2
, 64};
43 object y
= {(char *) &nil
, 0};
44 object three
= foo(x
,y
);