Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bitfield3.C
blob: ba4c5fac81d061195813e587033cb50369f5f6ec [
file
] [
log
] [
blame
]
// PR c++/30274
struct
S
{
bool
x
:
4
;
};
S s
;
void
f
()
{
s
.
x
--;
// { dg-error "5:use of an operand of type .bool." }
--
s
.
x
;
// { dg-error "7:use of an operand of type .bool." }
}