aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/UnitTests/2004-06-20-StaticBitfieldInit.c
blob: 35224533d44a21dada2223e28f1261f3a7f8ebb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

struct T {
  unsigned X : 5;
  unsigned Y : 6;
  unsigned Z : 5;
};

struct T GV = { 1, 5, 1 };

int main() {
  printf("%d %d %d\n", GV.X, GV.Y, GV.Z);
  return 0;
}