Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
bitfield7.C
blob: d1b1b096c1e50ba7d732c8ab4eb6e73e4dc513cd [
file
] [
log
] [
blame
]
// PR c++/33984
// { dg-do compile }
struct
S
{
unsigned
int
bar
:
3
;
}
s
;
int
foo
(
unsigned
int
&);
int
foo
(
double
);
int
main
()
{
return
foo
(
s
.
bar
);
// { dg-error "cannot bind bit-field" }
}