1 %module destructor_reprotected 2 3 4 %inline { 5 6 struct A 7 { AA8 A() 9 { 10 } 11 ~AA12 virtual ~A() 13 { 14 } 15 16 }; 17 18 struct B : A 19 { 20 protected: BB21 B() 22 { 23 } 24 ~BB25 ~B() 26 { 27 } 28 29 }; 30 31 struct C : B 32 { CC33 C() 34 { 35 } 36 ~CC37 ~C() 38 { 39 } 40 }; 41 } 42