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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [alias-decl-5.C] - Blame information for rev 715

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=c++0x" }
2
 
3
// alias template of a partial specialization
4
 
5
template struct S0 {};
6
template struct S0 {};
7
template using AS0 = S0;
8
void foo(S0);
9
 
10
AS0 a; // OK
11
 
12
void
13
f()
14
{
15
    foo(a); //OK
16
}
17
 
18
// alias template of an explicit specialization of a member template
19
 
20
template
21
struct S1 {
22
    template
23
    struct M {};
24
};
25
template using AM = S1::M;
26
void bar(S1::M);
27
 
28
AM b; //OK.
29
 
30
void
31
g()
32
{
33
    bar(b); //OK
34
}

powered by: WebSVN 2.1.0

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