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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [friend2.C] - Blame information for rev 779

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

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// PRMS Id: 5189
3
// Bug: g++ fails to collapse the several declarations of freefoo, so it isn't
4
// recognized as a friend.
5
 
6
extern "C"
7
void freefoo(void);
8
 
9
class foo {
10
   friend void freefoo(void);
11
   protected:
12
      static void foomem();
13
   public:
14
      foo();
15
      ~foo();
16
};
17
 
18
void freefoo(void)
19
{
20
   foo::foomem();
21
}

powered by: WebSVN 2.1.0

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