blob: 3adf070c1220c5e203386021c6aea63e9fb179a3 [file] [log] [blame]
// PR594
struct X {
int Q :6;
int A : 4;
int Z : 22;
};
void test(struct X *P, int A) {
P->A = A;
}
int main() {
union {
int Y;
struct X Z;
} U;
U.Y = ~0;
test(&U.Z, 0);
printf("%x\n", U.Y);
}