2 pr44468.c from the execute part of the gcc torture tests.
29 struct S
*b
= (struct S
*)((char *)q
+ sizeof (int));
37 struct S
*b
= &((struct R
*)q
)->a
;
46 ((struct S
*)((char *)q
+ sizeof (int)))->i
= 3;
51 testTortureExecute (void)
53 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5 && __GNUC_MINOR__ < 5))
54 if (sizeof (float) != sizeof (int)
55 || offsetof (struct R
, a
) != sizeof (int)
56 || offsetof (struct Q
, a
) != sizeof (int))
60 if (test1 ((void *)&s
) != 3)
64 if (test2 ((void *)&s
) != 3)
68 if (test3 ((void *)&s
) != 3)