summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/b2.c
blob: 96e4556a53a57028f55f836c37c3d67db9bcdb0e (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
struct s
{
  unsigned a : 8;
  unsigned b : 8;
  unsigned c : 8;
  unsigned d : 8;
};

/*
struct
{
  unsigned a : 8;
  unsigned b : 16;
  unsigned c : 8;
};
*/

struct s
foo (struct s s, int i)
{
  s.b = i;
  return s;
}