bitfield3.C   [plain text]


// PR c++/30274

struct S {
  bool x : 4;
};

S s;

void f() {
  s.x--; // { dg-error "bool" }
  --s.x; // { dg-error "bool" }
}