OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [memtemp100.C] - Blame information for rev 305

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

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// { dg-options "" }
3
// Origin: philippeb@videotron.ca
4
 
5
#include 
6
 
7
using namespace std;
8
 
9
template  struct traits
10
{
11
  typedef long next;
12
};
13
 
14
 
15
template 
16
struct c1
17
{
18
  template 
19
  struct c2
20
  {
21
    c2()
22
    {
23
      cout << __PRETTY_FUNCTION__ << endl;
24
    }
25
  };
26
};
27
 
28
 
29
template 
30
void foo()
31
{
32
  cout << __PRETTY_FUNCTION__ << endl;
33
  typename c1::next>::template c2();
34
}
35
 
36
 
37
int main()
38
{
39
  foo();
40
}

powered by: WebSVN 2.1.0

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