]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/bad-type.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / bad-type.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/bad-type.C b/gcc/testsuite/g++.old-deja/g++.pt/bad-type.C
deleted file mode 100644 (file)
index 6b22b86..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-template<class Type>
-class A
-{
-public:
-  Type m;
-};
-
-template<class Type>
-void f(A<Type>& a, Type d)
-{
-  A.m=d; // ERROR - invalid use of template
-}
-
-int main()
-{
-  A<int> a;
-  f(a,2);
-}