URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [enum5.C] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/41127
#define CHAR_BIT 8
enum EE {ee};
typedef unsigned int T;
struct D {
T : sizeof(unsigned int) * CHAR_BIT; // OK
EE : sizeof(EE) * CHAR_BIT; // OK
enum EE : sizeof(EE) * CHAR_BIT; // not OK
enum EE xxxx : sizeof(EE) * CHAR_BIT; // OK
T x : sizeof(unsigned int) * CHAR_BIT; // OK
enum FF {ff} : sizeof(int) * CHAR_BIT; // OK
} element;
enum EE xx;
EE yy;
Go to most recent revision | Compare with Previous | Blame | View Log