8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/931102-1.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

31 lines
272 B
C

typedef union
{
struct
{
char h, l;
} b;
} T;
f (x)
int x;
{
int num = 0;
T reg;
reg.b.l = x;
while ((reg.b.l & 1) == 0)
{
num++;
reg.b.l >>= 1;
}
return num;
}
main ()
{
if (f (2) != 1)
abort ();
exit (0);
}