summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum4.C
blob: ca954e1a4fc13f26550c673a9cf65ec00b2c792e (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// GROUPS passed enums
class X {
public:
  enum { a };
};

enum { b = 1 };
enum ok {  y = b };
enum notok { z = X::a };