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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
template 
4
struct b
5
{
6
  template 
7
  class a
8
  {
9
    template 
10
    friend class a;
11
 
12
    T t_;
13
 
14
   public:
15
    a() {}
16
    a(a const &);
17
  };
18
};
19
 
20
template 
21
template 
22
b::a::a(a const &rhs): t_(*rhs.t_)
23
{}
24
 
25
 
26
int
27
f ()
28
{
29
  b::a q;
30
  b::a w(q);
31
 
32
  return 0;
33
}

powered by: WebSVN 2.1.0

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