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/] [friend15.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
class S1
4
{
5
  template 
6
  friend class S2;
7
 
8
  static int i;
9
};
10
 
11
 
12
template 
13
class S2
14
{
15
public:
16
  static void f() { S1::i = 3; }
17
};
18
 
19
 
20
void g()
21
{
22
  S2::f();
23
  S2::f();
24
}

powered by: WebSVN 2.1.0

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