blob: 9589a9e205408bd42b224029cfe770f8dbd2d544 [file] [log] [blame]
/* { dg-do run } */
extern void abort (void);
union u
{
int i;
short f;
} v;
short foo (short *f)
{
*f = 1;
v.i = 0;
v.f = 0;
return *f;
}
int main()
{
if (foo (&v.f) != 0)
abort ();
return 0;
}