aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec17.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/spec17.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/spec17.C44
1 files changed, 0 insertions, 44 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/spec17.C b/gcc/testsuite/g++.old-deja/g++.pt/spec17.C
deleted file mode 100644
index 3e3dd63751a..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/spec17.C
+++ /dev/null
@@ -1,44 +0,0 @@
-// Build don't link:
-
-template<class T>
-struct Foo { };
-
-template<class T1, class T2>
-struct BT { };
-
-template<class T1, class T2>
-struct BT< Foo<T1>, Foo<T2> > { static const int i = 1; };
-
-template<class T1, class T2>
-struct BT< T1, Foo<T2> > { static const int i = 2; };
-
-template<class T1, class T2>
-struct BT< Foo<T1>, T2 > { static const int i = 3; };
-
-template<class T1, class T2>
-int foo(Foo<T1>, Foo<T2>)
-{
- return 1;
-}
-
-template<class T1, class T2>
-int foo(T1, Foo<T2>)
-{
- return 2;
-}
-
-template<class T1, class T2>
-int foo(Foo<T1>, T2)
-{
- return 3;
-}
-
-void f()
-{
- BT< double, Foo<int> >::i;
- BT< Foo<int>, Foo<int> >::i;
- BT< Foo<int>, float >::i;
- foo(1.0, Foo<int>());
- foo(Foo<int>(), Foo<int>());
- foo(Foo<int>(), 1.0);
-}