2 // from g++/15307, tests for -Wredundant-decls
3 // for friend functions and functions
5 //Special g++ Options: -Wredundant-decls
8 extern int foo(const char *);
12 friend int foo(const char *);
18 friend int foo(const char *);
19 int foo2() {return b;}
25 friend int foo(const char *);
26 friend int foo(const char *); // WARNING -
27 int foo2() {return b;}
34 int foo2() {return b;} // WARNING -
35 int foo2() {return b;} // WARNING -
42 int foo2(); // WARNING -
43 int foo2(); // WARNING -
47 extern int foo3(const char *); // WARNING -
48 extern int foo3(const char *); // WARNING -