rt_gccstream/gcc/testsuite/g++.dg/conversion/bitfield4.C

21 lines
210 B
C

// PR c++/27292
enum ColorRole
{
WindowText, Button
};
struct QPalette {
ColorRole bg_role:8;
bool hasBackground();
};
bool
QPalette::hasBackground ()
{
return (ColorRole (bg_role) != WindowText);
}