2 // Warn if a enum cannot fit into a small bit-field.
4 enum TypeKind { ATK, BTK, CTK, DTK } ;
7 enum TypeKind kind : 1; // { dg-warning "" }
11 void Type::setBTK() { kind = DTK; } // { dg-warning "conversion from '\[^\n\r]+' to .unsigned char:1. changes value from" }