Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bitfield6.C
blob: 5a778f94983da445d69d582f5a3623d978781a7b [
file
] [
log
] [
blame
]
// PR c++/30274
struct
S
{
bool
x
:
4
;
};
S s
;
void
f
()
{
++
s
.
x
=
false
;
// { dg-warning "7:use of an operand of type .bool. in .operator\\+\\+. is deprecated" "" { target { ! c++17 } } }
// { dg-error "forbidden" "" { target c++17 } .-1 }
}