summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20051012-1.c
blob: f12f42913cc2f86fbf57cfbab118bb1d04a0788b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
extern void abort (void);

struct type 
{
  int *a;
  
  int b:16;
  unsigned int p:9;
} t;

unsigned int 
foo ()
{
  return t.p;
}

int 
main (void)
{
  t.p = 8;
  if (foo (t) != 8)
    abort ();
  return 0;
}