diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/ttp35.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/ttp35.C | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ttp35.C b/gcc/testsuite/g++.old-deja/g++.pt/ttp35.C deleted file mode 100644 index 655f406ed80..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/ttp35.C +++ /dev/null @@ -1,35 +0,0 @@ -template<int T, class U = int> class D -{ - public: - int f(); -}; - -template<int T, class U> int D<T,U>::f() -{ - return T+sizeof(U); -} - -template<template<int> class D,class E> class C -{ - D<1> d; - public: - int f() { return d.f(); } -}; - -template<template<int> class D> int f(D<2> &d1) -{ - d1.f(); - return 0; -} - -template<template<int> class D> int f(D<1> &d1) -{ - d1.f(); - return 0; -} - -int main() -{ - D<1> c1; - f(c1); -} |