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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2004 Free Software Foundation
2
// Contributed by Kriang Lerdsuwanakij 
3
// { dg-do compile }
4
 
5
// Friend name lookup in class defined outside its namespace
6
 
7
namespace A {
8
  class B;
9
  class C;
10
}
11
 
12
class A::B {
13
  friend class C;
14
  typedef int i;
15
};
16
 
17
class A::C {
18
  A::B::i j;
19
};

powered by: WebSVN 2.1.0

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