Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
bitfield11.C
blob: e36539c64b5ec8d2937414ccf90eb27b2ecef164 [
file
] [
log
] [
blame
]
// Make sure that digest_init converts to the declared type of the
// bitfield, not just the lowered type.
enum
E
{
EA
,
EB
};
struct
A
{
E e
:
8
;
};
A a
=
{
0
};
// { dg-error "invalid conversion" }