X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Ffriend.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Ffriend.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=59564ad94372efaf808ed49db1a3ba12f37b370b;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/template/friend.C b/gcc/testsuite/g++.dg/template/friend.C deleted file mode 100644 index 59564ad9..00000000 --- a/gcc/testsuite/g++.dg/template/friend.C +++ /dev/null @@ -1,30 +0,0 @@ -// Contribued by Gabriel Dos Reis -// Origin: iskey@i100.ryd.student.liu.se -// { dg-do link } - -#include -using namespace std; - -template struct s; - -template -ostream& operator<<(ostream &o, const typename s::t &x) -{ - return o; -} - -template -struct s { - struct t - { - friend ostream& - operator<<(ostream&, const typename s::t &); - }; - t x; -}; - -int main() -{ - s::t y; - cout << y; -}