use SUBREG_TO_REG instead of INSERT_SUBREG, this way the code
[llvm/systemz.git] / test / FrontendC / 2003-09-18-BitfieldTests.c
blob900a7fdd660606a83e2a2fee6048c09d2a75be4f
1 // RUN: %llvmgcc -w -S %s -o - | llvm-as -f -o /dev/null
4 typedef struct BF {
5 int A : 1;
6 char B;
7 int C : 13;
8 } BF;
10 char *test1(BF *b) {
11 return &b->B; // Must be able to address non-bitfield
14 void test2(BF *b) { // Increment and decrement operators
15 b->A++;
16 --b->C;
19 void test3(BF *b) {
20 b->C = 12345; // Store
23 int test4(BF *b) {
24 return b->C; // Load
27 void test5(BF *b, int i) { // array ref
28 b[i].C = 12345;