blob: 05ce9af48c75a0744f0e4b53f2a366e3b0e159a1 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */
union U {
float f;
int i;
};
int foo (union U *p)
{
union U u;
p->f = 0.0;
u = *p;
return u.i;
}
/* avr has 16 bit int and 32 bit float */
/* { dg-final { scan-tree-dump "Replaced u.i with 0 in" "fre1" {xfail avr-*-* } } } */