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

Subversion Repositories openrisc

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

Go to most recent revision | 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
// (Local class case)
7
 
8
void f() {
9
  class A {
10
    class B;
11
    class C;
12
  };
13
 
14
  class A::B {
15
    friend class C;
16
    typedef int i;
17
  };
18
 
19
  class A::C {
20
    A::B::i j;
21
  };
22
}

powered by: WebSVN 2.1.0

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