summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/bitfield6.C
blob: 6f6d559a38e28209bbc335e2a160da6556932e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/30274

struct S {
  bool x : 4;
};

S s;

void f() {
  ++s.x = false;
}