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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [friend.C] - Blame information for rev 318

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

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
/* { dg-options -Wredundant-decls } */
3
 
4
/* Test to see if spurious warnings about redundant
5
   declarations are emiited because of the friend
6
   declaration.  */
7
 
8
class Foo
9
{
10
   friend void bar (Foo);
11
public:
12
};
13
 
14
extern void bar (Foo);

powered by: WebSVN 2.1.0

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