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

class foo2 {
public:
  enum bar2 { baz2 = 1, bat2 = 7 };
};

class derv : public foo, public foo2 { };

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