diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/friend3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/friend3.C | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/friend3.C b/gcc/testsuite/g++.old-deja/g++.pt/friend3.C deleted file mode 100644 index 74d0e06699c..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/friend3.C +++ /dev/null @@ -1,25 +0,0 @@ -// Build don't link: - -template <class T> -void f(T); - -class C -{ - friend void f<>(double); - - int i; // ERROR - private -}; - - -template <class T> -void f(T) -{ - C c; - c.i = 3; // ERROR - f<double> is a friend, this is f<int>. -} - - -int main() -{ - f(7); -} |