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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [friend17.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
template 
4
class S2
5
{
6
public:
7
  static void f();
8
};
9
 
10
class S1
11
{
12
  template 
13
  friend class S2;
14
 
15
  static int i;
16
};
17
 
18
template 
19
void S2::f()
20
{
21
  S1::i = 3;
22
}
23
 
24
void g()
25
{
26
  S2::f();
27
  S2::f();
28
}

powered by: WebSVN 2.1.0

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