summaryrefslogtreecommitdiff
path: root/test/regression/bitfields3.c
blob: de29f4d457ff1780b5f06b11d25fbbe5dcd5c152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

struct s {
  unsigned int a: 32;
};

struct s x = { 0x12345678 };

int main()
{
  printf("x = {a = %x}\n", x.a);
  x.a = 0xDEADBEEF;
  printf("x = {a = %x}\n", x.a);
  return 0;
}