URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [enum3.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed enums
// enum file
// From: frode@auticon.no
// Date: Wed, 13 Jan 93 9:24:50 PST
// Subject: enum trouble
// Message-ID: <"nac.no.001:13.00.93.18.40.52"@nac.no>
typedef enum{on, off} TOGGLE;
class field {
private:
TOGGLE toggle;
public:
virtual void on(void) { toggle = 3; };// { dg-error "" } .*
virtual void off(void) { toggle = on; };// { dg-error "" } .*
};
int main()
{
}