summaryrefslogtreecommitdiff
path: root/test/regression/bitfields7.c
blob: 33e20a12d22663927d0b9e6aef9316425da35483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>

struct S0 {
  signed f0 : 12;
  unsigned f1 : 28;
};

struct S5 {
  struct S0  f1;
  unsigned : 0;
  signed f2 : 26;
};

struct S5 g_22 = {{0,0},1};

int main(int argc, char* argv[])
{
   printf("g_22.f2 = %d\n", g_22.f2);
   return 0;
}