diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/friend34.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/friend34.C | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/friend34.C b/gcc/testsuite/g++.old-deja/g++.pt/friend34.C deleted file mode 100644 index 56eb80a5056..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/friend34.C +++ /dev/null @@ -1,15 +0,0 @@ -// Build don't link: -// excess errors test - -// This testcase won't fail if class ::foo is forward-declared in the -// global namespace, nor if class bar is not a template class. - -template <typename T = void> -class bar { -public: - friend class foo; // this is not bar::foo, it forward-declares ::foo - class foo {}; - bar() { foo(); } // but this should refer to bar::foo -}; - -bar<> baz; |