summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum1.C
blob: 12b9a5f468c549ed24232132d685371e217b56fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// GROUPS passed enums
class foo {
public:
  enum bar { baz = 1, bat = 7 };
};

class derv : public foo { };

int main()
{
  foo::bar x = foo::baz;
  derv::bar y = derv::bat;
}