aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/UnitTests/2003-09-18-BitFieldTest.c
blob: 3c1914d6d80bc866e6535d5576cd4df340f60f7a (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 rtx_def {
  unsigned int jump : 1;
  unsigned int call : 1;
};

void i2(struct rtx_def *d) {
  d->jump = 0;
}

int main() {
  struct rtx_def D;
  D.call = 1;
  i2(&D);
  printf("%d %d\n", D.jump, D.call);
  return 0;
}