blob: 5e680b9ae900b35550c1554ccb68de4d3daf68de [file] [log] [blame]
/* PR c/88664. */
/* { dg-do compile } */
/* { dg-options "-O" } */
struct data
{
void *ptr;
} __attribute__((packed));
int *
fun1 (struct data *p)
{
return (int *) p->ptr;
}
int *
fun2 (struct data *p, int *x)
{
return x ? (*x = 1, (int *) p->ptr) : (int *) 0;
}