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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [enum5.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/41127
2
 
3
#define CHAR_BIT 8
4
enum EE {ee};
5
typedef unsigned int T;
6
 
7
struct D {
8
        T : sizeof(unsigned int) * CHAR_BIT; // OK
9
        EE : sizeof(EE) * CHAR_BIT; // OK
10
        enum EE : sizeof(EE) * CHAR_BIT; // not OK
11
        enum EE xxxx : sizeof(EE) * CHAR_BIT; // OK
12
        T x : sizeof(unsigned int) * CHAR_BIT; // OK
13
        enum FF {ff} : sizeof(int) * CHAR_BIT; // OK
14
} element;
15
 
16
enum EE xx;
17
EE yy;

powered by: WebSVN 2.1.0

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