blob: c77ce86e07d176e5c5213cc8b07299866faf335b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Build don't link:
// GROUPS passed bit-fields
struct {
char c;
int i:8;
} s;
int main()
{
int &ir = s.i; // ERROR - address of bitfield
int *ip = &s.i; // ERROR - address of bitfield
ir = 10;
}
|