]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/template15.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template15.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template15.C b/gcc/testsuite/g++.old-deja/g++.jason/template15.C
deleted file mode 100644 (file)
index 9779ca0..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// PRMS Id: 2139
-// Bug: g++ tries to instantiate the template with types on the function
-// obstack and fails.
-
-template<class T>
-class X {
-public:
-    X(int) { }
-
-    T x;
-};
-
-class A { };
-
-int main()
-{
-    int i;
-    X<int> xi(i);
-    X<double> xd(i);
-    
-    X<int (*)(int, void *)> fp0(i);
-    X<int (*)(int, char, double)> fp1(i);
-    X<int (*)(int, double**, void *)> fp2(i);
-
-    X<int (A::*)()> mp0 (i);
-    X<int A::*> mp1 (i);
-}