URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [enum2.C] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
// { 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;
}
Go to most recent revision | Compare with Previous | Blame | View Log