summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2008-02-07-bitfield-bug.c
blob: 73e31e75e97952366364acc547d7d8090c78d5bf (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 %s -emit-llvm -o %t
// PR1990

struct test {
  char a[3];
  unsigned char b:1;
};

void f(struct test *t) {
  t->b = 1;
}