OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [enum5.C] - Rev 826

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;

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.