1 /* PR tree-optimization/84503 */
3 /* { dg-options "-O3" } */
5 typedef __SIZE_TYPE__
size_t;
6 typedef __UINTPTR_TYPE__
uintptr_t;
8 struct S
{ int a
; unsigned short b
; int c
, d
, e
; long f
, g
, h
; int i
, j
; };
23 o
= (struct S
*) __builtin_realloc (k
, sizeof (struct S
) * n
);
27 for (i
= l
; i
< n
; i
++)
29 void *p
= (void *) &k
[i
];
31 size_t r
= sizeof (struct S
);
32 if ((((uintptr_t) p
) % __alignof__ (long)) == 0
33 && r
% sizeof (long) == 0)
35 long __attribute__ ((may_alias
)) *s
= (long *) p
;
36 long *t
= (long *) ((char *) s
+ r
);
41 __builtin_memset (p
, q
, r
);
57 k
= (struct S
*) __builtin_malloc (sizeof (struct S
));
60 __builtin_memset (k
, '\0', sizeof (struct S
));
63 for (int i
= 0; i
< 15; ++i
)