PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / friend.C
blobe7982896a927614941a6d410c5eb67225dce5144
1 /* { dg-do compile } */
2 /* { dg-options -Wredundant-decls } */
4 /* Test to see if spurious warnings about redundant
5    declarations are emiited because of the friend
6    declaration.  */
8 class Foo
10    friend void bar (Foo);
11 public:
14 extern void bar (Foo);