]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/overload15.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / overload15.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/overload15.C b/gcc/testsuite/g++.old-deja/g++.pt/overload15.C
deleted file mode 100644 (file)
index defadad..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-// Test resolution of templatized overloaded constructors.
-// The more specialized constructor, i.e., A (const B<Dim1,Dim2> &b)
-// should be chosen per \S 14.5.5.2/2 [temp.func.order/2].
-
-template <int Dim1, int Dim2>
-struct B {
-  int f;
-};
-
-struct A {
-  template <int Dim1, int Dim2>
-  A (const B<Dim1,Dim2> &b) {}
-
-  template <typename T>
-  A (const T &b) {}
-};
-
-int
-main ()
-{
-  B<2,3> b;
-  A a (b);
-  return 0;
-}