Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-7.C
blob: 6f5c23e95fd2611653d30b43c1d5a295a53ea815 [
file
] [
log
] [
blame
]
// PR c++/14481
// { dg-options "-Wunused" }
void
func
()
{
struct
mybitfields
{
unsigned
int
s_field
:
8
;
};
struct
mybitfields s
;
// { dg-warning "set but not used" }
s
.
s_field
=
255
;
};