]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/typename8.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename8.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C b/gcc/testsuite/g++.old-deja/g++.pt/typename8.C
deleted file mode 100644 (file)
index e95a0a1..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// Build don't link:
-
-template < class T > class A
-{
-public:
-  typedef typename T::myT anotherT; // ERROR - undefined type
-
-  anotherT t; // ERROR - undefined type 
-
-  A() { }
-  A(anotherT _t) { // ERROR - undefined type
-    t=_t;
-  }
-
-  anotherT getT() { // ERROR - undefined type
-    return t;
-  }
-};
-
-class B : public A< B > // ERROR - forward declaration
-{
-public:
-  typedef int myT;
-};
-
-int main() {
-  B b;
-}