X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Ffriend44.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Ffriend44.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=db403b54155d30912eff040f428d118338d6f36a;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/friend44.C b/gcc/testsuite/g++.old-deja/g++.pt/friend44.C deleted file mode 100644 index db403b54..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/friend44.C +++ /dev/null @@ -1,44 +0,0 @@ -// Test that template friends referring to class template members are -// respected. - -// excess errors test - XFAIL *-*-* - -template struct A -{ - int f (T); - struct AI { - int f (T); - }; -}; - -class B -{ - template friend int A::f (T); - template friend struct A::AI; - int a; -public: - B(): a(0) { } -}; - -template int A::f (T) -{ - B b; - return b.a; -} - -template int A::AI::f (T) -{ - B b; - return b.a; -} - -int main () -{ - A a; - A::AI ai; - - int r = a.f (0); - r |= ai.f (0); - - return r; -}