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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20110311-1_0.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-lto-do link } */
2
/* { dg-extra-ld-options "-r -nostdlib" } */
3
 
4
struct NullType {};
5
 
6
template 
7
struct TList
8
{
9
    typedef T Head;
10
    typedef U Tail;
11
};
12
 
13
template 
14
struct TListLength {};
15
 
16
template 
17
struct TListLength >
18
{
19
    enum
20
    {
21
        Ret = 1 + TListLength::Ret
22
    };
23
};
24
 
25
template <>
26
struct TListLength
27
{
28
    enum
29
    {
30
        Ret = 0
31
    };
32
};
33
 
34
template 
35
class DDQMC
36
{
37
public:
38
    int* moves[TListLength::Ret];
39
    inline DDQMC();
40
private:
41
};
42
 
43
template 
44
DDQMC::DDQMC()
45
{
46
}
47
 
48
int main()
49
{
50
    typedef DDQMC< TList > > mytype;
51
}

powered by: WebSVN 2.1.0

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