2 990811-1.c from the execute part of the gcc torture suite.
11 struct s
{long a
; int b
;};
13 int foo(int x
, void *y
)
16 case 0: return ((struct s
*)y
)->a
;
17 case 1: return *(signed char*)y
;
18 case 2: return *(short*)y
;
24 testTortureExecute (void)
33 for (i
= 0; i
< 10; i
++) {
38 if (foo(0, &s
) != 1) ASSERT(0);
39 if (foo(1, c
+3) != 3) ASSERT(0);
40 if (foo(2, sh
+3) != 3) ASSERT(0);