Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / enum1.C
blob2f7a6dd438abf2cc5c2c15e5dd14093c35c72bed
1 // { dg-do assemble  }
2 // Warn if a enum cannot fit into a small bit-field.
4 enum TypeKind { ATK, BTK, CTK, DTK } ;
6 struct Type {
7   enum TypeKind kind : 1;               // { dg-warning "" } 
8   void setBTK();
9 };
11 void Type::setBTK() { kind = DTK; } // { dg-warning "conversion from '\[^\n\r]+' to .unsigned char:1. changes value from" }