1 struct s
{long a
; int b
;};
3 int foo(int x
, void *y
)
6 case 0: return ((struct s
*)y
)->a
;
7 case 1: return *(signed char*)y
;
8 case 2: return *(short*)y
;
22 for (i
= 0; i
< 10; i
++) {
27 if (foo(0, &s
) != 1) abort();
28 if (foo(1, c
+3) != 3) abort();
29 if (foo(2, sh
+3) != 3) abort();