#include <cstdio>

struct A {
  A() { std::printf("A::A() this=%p\n", this); }
  ~A() { std::printf("A::~A() this=%p\n", this); }
};

struct B : A {
  B(int) { std::printf("B::B(int) this=%p\n", this); }
  B() : B(1) { std::printf("B::B() this=%p\n", this); throw 1; }
  ~B() { std::printf("B::~B() this=%p\n", this); }
};

int main()
try {
  B b;
}
catch (...) {
  return 0;
}
