X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Foverload11.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Foverload11.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=300d91ea2b81c96d1804fe0626858ce02193619a;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/overload11.C b/gcc/testsuite/g++.old-deja/g++.pt/overload11.C deleted file mode 100644 index 300d91ea..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/overload11.C +++ /dev/null @@ -1,27 +0,0 @@ -// Build don't run: - -template -int f(int (*fn)(T)) -{ - return (*fn)(3); -} - -struct S { - static int g(int) { return 1; } - static void g(); - - int h(); -}; - -int S::h() -{ - return f(&g); -} - - -int main() -{ - S s; - if (s.h () != 1) - return 1; -}