freebsd-dev/test/CodeGen/2008-02-07-bitfield-bug.c

12 lines
141 B
C
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 %s -emit-llvm -o %t
2009-06-02 17:58:47 +00:00
// PR1990
struct test {
char a[3];
unsigned char b:1;
};
void f(struct test *t) {
t->b = 1;
}