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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend5.C] - Blame information for rev 698

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Origin: aroach@stoic.electriceyeball.com
4
 
5
// PR c++/3332: Friend function lookup in class defined outside its
6
// namespace
7
 
8
namespace N
9
{
10
  class A;
11
}
12
 
13
class N::A
14
{
15
  void x();
16
  friend void func(void);
17
};
18
 
19
namespace N
20
{
21
  void func(void);
22
}
23
 
24
void N::func(void)
25
{
26
  N::A a;
27
  a.x();
28
}
29
 
30
int main()
31
{
32
  return 0;
33
}
34
 

powered by: WebSVN 2.1.0

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