8sa1-gcc/gcc/testsuite/g++.old-deja/g++.brendan/enum2.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

20 lines
271 B
C

// Build don't link:
// 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 { };
main()
{
foo::bar x = foo::baz;
derv::bar2 y = derv::bat2;
}