]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.c-torture/execute/pr44468.c
16 int __attribute__((noinline
,noclone
))
19 struct S
*b
= (struct S
*)((char *)q
+ sizeof (int));
24 int __attribute__((noinline
,noclone
))
27 struct S
*b
= &((struct R
*)q
)->a
;
32 int __attribute__((noinline
,noclone
))
36 ((struct S
*)((char *)q
+ sizeof (int)))->i
= 3;
39 extern void abort (void);
43 if (sizeof (float) != sizeof (int)
44 || offsetof (struct R
, a
) != sizeof (int)
45 || offsetof (struct Q
, a
) != sizeof (int))
49 if (test1 ((void *)&s
) != 3)
53 if (test2 ((void *)&s
) != 3)
57 if (test3 ((void *)&s
) != 3)