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

19 lines
221 B
C

main ()
{
struct {
signed int s:3;
unsigned int u:3;
int i:3;
} x = {-1, -1, -1};
if (x.u != 7)
abort ();
if (x.s != - 1)
abort ();
if (x.i != -1 && x.i != 7)
abort ();
exit (0);
}