aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/bf-sign-1.c
blob: 3cc3eac15fdf8e8080e3075533a352df7fd76f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}