]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/scoping4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / scoping4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/scoping4.C b/gcc/testsuite/g++.old-deja/g++.jason/scoping4.C
deleted file mode 100644 (file)
index 94a49bf..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// PRMS Id: 4375
-// Bug: g++ fails to keep track of nested typedefs properly.
-// Build don't link:
-
-class A {
-public:
-  typedef char * Ptr;
-  Ptr s;
-  Ptr get_string();
-  A(Ptr string); // { s = string; };
-};
-
-class B {
-public:
-  typedef A * Ptr;
-  Ptr a;
-  Ptr get_A();
-  B(Ptr a_ptr);
-};
-
-A::A(Ptr string) {             // gets bogus error - 
-  s = string;                  // gets bogus error - 
-}
-
-int main() {
-  A a("testing");
-  A *a_ptr;
-  B b(&a);
-  a_ptr = b.get_A();
-}