1 // RUN: %clang_cc1 -w -emit-llvm %s -o /dev/null 2 3 4 typedef struct BF { 5 int A : 1; 6 char B; 7 int C : 13; 8 } BF; 9 test1(BF * b)10char *test1(BF *b) { 11 return &b->B; // Must be able to address non-bitfield 12 } 13 test2(BF * b)14void test2(BF *b) { // Increment and decrement operators 15 b->A++; 16 --b->C; 17 } 18 test3(BF * b)19void test3(BF *b) { 20 b->C = 12345; // Store 21 } 22 test4(BF * b)23int test4(BF *b) { 24 return b->C; // Load 25 } 26 test5(BF * b,int i)27void test5(BF *b, int i) { // array ref 28 b[i].C = 12345; 29 } 30 31