X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.benjamin%2Fwarn02.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.benjamin%2Fwarn02.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=e63d43cbec9cf60438708506a100d87119f385d3;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C b/gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C deleted file mode 100644 index e63d43cb..00000000 --- a/gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C +++ /dev/null @@ -1,54 +0,0 @@ -// 980413 bkoz -// from g++/15307, tests for -Wredundant-decls -// for friend functions and functions -// Build don't link: -//Special g++ Options: -Wredundant-decls - - -extern int foo(const char *); - -class A -{ - friend int foo(const char *); - int a; -}; - -class B -{ - friend int foo(const char *); - int foo2() {return b;} - int b; -}; - -class C -{ - friend int foo(const char *); - friend int foo(const char *); // WARNING - - int foo2() {return b;} - int b; -}; - -class D -{ -public: - int foo2() {return b;} - int foo2() {return b;} // ERROR - - int b; -}; - -class E -{ -public: - int foo2(); - int foo2(); // ERROR - - int b; -}; - -extern int foo3(const char *); // WARNING - -extern int foo3(const char *); // WARNING - - - - - - -