Merge with main truk.
[official-gcc.git] / gcc / testsuite / g++.dg / expr / bitfield3.C
blob3221263a9066931c415c82271ee27cb145baca68
1 // PR c++/30274
3 struct S {
4   bool x : 4;
5 };
7 S s;
9 void f() {
10   s.x--; // { dg-error "Boolean expression" }
11   --s.x; // { dg-error "Boolean expression" }