summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum7.C
blob: 980c8ea80dbbcb0c2f53ed961fb2075b94ef79d1 (plain)
1
2
3
4
5
6
7
// { dg-do assemble  }
// GROUPS passed enums
enum color { red, green, blue, orange, brown };

struct s {
      enum color      field:2; // { dg-warning "too small" }
};