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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-std=c++0x" }
3
 
4
template struct S1
5
{
6
    enum E1 : int;
7
    enum class E2 : int;
8
};
9
 
10
template enum S1::E1 : int { e1 };
11
template enum class S1::E2 : T { e2 };
12
 
13
template<> enum S1::E1 : int { i1 };
14
template<> enum class S1::E2 : int { i2 };
15
 
16
S1::E1 xci = S1::e1;
17
S1::E1 xi1 = S1::i1;
18
 
19
S1::E2 xc2 = S1::E2::e2;
20
S1::E2 xi2 = S1::E2::i2;
21
 

powered by: WebSVN 2.1.0

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