Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }
}