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

Subversion Repositories openrisc

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

Go to most recent revision | 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 E1 : T;
8
    enum class E2 : int;
9
    enum class E2 : T;
10
};
11
 
12
template enum S1::E1 : int { e1 };
13
template enum class S1::E2 : T { e2 };
14
 
15
S1::E1 x1 = S1::e1;
16
S1::E1 x11 = S1::E1::e1;
17
S1::E2 x2 = S1::E2::e2;
18
 
19
enum S1::E1 ex1 = S1::e1;
20
enum S1::E1 ex11 = S1::E1::e1;
21
enum S1::E2 ex2 = S1::E2::e2;

powered by: WebSVN 2.1.0

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