Commit 5be598f6 by Nick Clifton Committed by Nick Clifton

Add new test - do not warn about (non-)redundant friend declaration.

From-SVN: r42105
parent 8d0cb60d
2001-05-15 Nick Clifton <nickc@cambridge.redhat.com>
* g++.dg/friend-warn.C: New test. Do not warn about friend
declaration being redundant.
2001-05-15 Mark Mitchell (admin) <mitchell@nunki.dbai.tuwien.ac.at>
* gcc.dg/ultrasp2.c: Don't run it with -m64 on sparc-*-*.
......
/* { dg-do compile } */
/* { dg-options -Wredundant-decls } */
/* Test to see if spurious warnings about redundant
declarations are emiited because of the friend
declaration. */
class Foo
{
friend void bar (Foo);
public:
};
extern void bar (Foo);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment