blob: 89e8542b779bac52db992505b0b710e935cd04af [file] [log] [blame]
// Build don't link:
// Warn if a enum cannot fit into a small bit-field.
enum TypeKind { ATK, BTK, CTK, DTK } ;
struct Type {
enum TypeKind kind : 1; // WARNING -
void setBTK();
};
void Type::setBTK() { kind = DTK; }