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

21 lines
225 B
C

struct s {
unsigned long long a:8, b:32;
};
struct s
f(struct s x)
{
x.b = 0xcdef1234;
return x;
}
main()
{
static struct s i;
i.a = 12;
i = f(i);
if (i.a != 12 || i.b != 0xcdef1234)
abort();
exit(0);
}