☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bitfield3.C
☽
☼
gcc/testsuite/g++.dg/expr/bitfield3.C
code
plain
raw
1
// PR c++/30274
2
3
struct S {
4
bool x : 4;
5
};
6
7
S s;
8
9
void f() {
10
s.x--; // { dg-error "5:use of an operand of type .bool." }
11
--s.x; // { dg-error "7:use of an operand of type .bool." }
12
}