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

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

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