+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-*-*.
--- /dev/null
+/* { 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);