#include<iostream>

namespace test{
  class TestA{
  public:
    TestA(int i):m_i(i){std::cout << "TestA(" << i << ")" << std::endl;}
  private:
    int m_i;
  };
  class TestB:public TestA{
  public:
    TestB(int i)
    try:
    TestA(i)
    {
      std::cout << "TestB(" << i << ")" << std::endl;
    }catch(...){
        std::cerr << "Exception!" << std::endl;
    }
  };
}

int main()
{
  test::TestB b(0);
  return 0;
}
