diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.bob/protected1.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.bob/protected1.C | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.bob/protected1.C b/gcc_arm/testsuite/g++.old-deja/g++.bob/protected1.C deleted file mode 100755 index 95a400e..0000000 --- a/gcc_arm/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 - -} |