8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/bf-sign-1.c

19 lines
221 B
C
Raw Normal View History

1997-08-19 03:34:40 -04:00
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);
}