X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fscoping4.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fscoping4.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=94a49bfc77a8c3752fd6fd8c1651d0dc4919c3fd;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git 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 index 94a49bfc..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/scoping4.C +++ /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(); -}