summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/warnings5.C
blob: e6341fa8723a1f6ccfea7aed96acebeb7857db0b (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// GROUPS passed warnings
enum TypeKind { ATK, BTK } ;

struct Type {
  enum TypeKind kind : 8;
  void setBTK();
};

void Type::setBTK() { kind = BTK; }