X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Ffriend6.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Ffriend6.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=e330d981892cfc2ce4bf2025c8db0c90e1c2909e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/template/friend6.C b/gcc/testsuite/g++.dg/template/friend6.C deleted file mode 100644 index e330d981..00000000 --- a/gcc/testsuite/g++.dg/template/friend6.C +++ /dev/null @@ -1,53 +0,0 @@ -// { dg-do compile } - -namespace boost_no_member_template_friends{ - -template -class foobar; - -template -class foo -{ -private: - template friend class foobar; - template friend class foo; - template friend bool must_be_friend_proc(const foo& f); - int i; -public: - foo(){ i = 0; } - template - foo(const foo& f){ i = f.i; } -}; - -template -class foo; - -template -bool must_be_friend_proc(const foo& f); - -template -bool must_be_friend_proc(const foo& f) -{ return f.i != 0; } - -template -class foobar -{ - int i; -public: - template - foobar(const foo& f) - { i = f.i; } -}; - - -int test() -{ - foo fi; - foo fd(fi); - (void) &fd; // avoid "unused variable" warning - foobar fb(fi); - (void) &fb; // avoid "unused variable" warning - return 0; -} - -}