X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bob%2Fprotected1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bob%2Fprotected1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=95a400eeaa1ad5adaf30130f6a3f4a202e9c6749;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bob/protected1.C b/gcc/testsuite/g++.old-deja/g++.bob/protected1.C deleted file mode 100644 index 95a400ee..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bob/protected1.C +++ /dev/null @@ -1,42 +0,0 @@ -// Build don't link: -class A { -public: - int i; - A(int j) : i(j){} -}; - -class B : protected A { -public: - B(int j) : A(j){} - void f(){ - A k(*this); - } -}; - -class C : protected B { -public: - C(int j) : B(j){} - void f(); - - void g(){ - A k(i); - } -}; - - -class D : public C { -public: - D(int w) : C(i) {} - void j() { A k(*this); } - void h() { i=3; } -}; - -void C::f() { - A k(*this); -} - -B b(3); -int -main() { - A *z = &b; // ERROR - -}