just out of curiosity, if I have a struct with bit fields
struct Foo
{
char a : 1;
char b : 1;
char c : 1;
}
and another struct with bitfields and struct Foo
struct Bar
{
Foo foo;
char a : 1;
char b : 1;
char c : 1;
}
will all of these bits get packed into a single integer?
How about this case, will these fields get re-ordered to make a single bit field?
struct Baz
{
char a : 1;
int NotBitfield;
char b : 1;
char c : 1;
}