1 2 3 4 5 6 7 8 9 10 11 12 13
extern bool was_f_in_Bar_destroyed; #include "ctor1.h" Foo::~Foo() { was_f_in_Bar_destroyed=true; } Bar::~Bar() { throw 1; }