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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
template  struct tuple {
2
    typedef tuple tail;
3
};
4
 
5
template <> struct tuple {
6
};
7
 
8
template 
9
struct length  {
10
  static const int i = length::tail>::i;
11
};
12
 
13
template<>
14
struct length > {
15
    static const int i = 1;
16
};
17
 
18
template  struct M {};
19
 
20
template 
21
M >::i > foo (A*);
22
 
23
template 
24
M >::i> foo (const A*);
25
 
26
const int i1 = 3;
27
 
28
void bar() {
29
  foo (&i1);
30
}

powered by: WebSVN 2.1.0

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