fork(1) download
  1. #include <iostream>
  2.  
  3. struct A
  4. {
  5. A() { throw 5; }
  6. ~A() { std::cout << "destructor!\n"; }
  7. };
  8.  
  9. int main()
  10. {
  11. try
  12. {
  13. A a;
  14. }
  15. catch (...)
  16. {}
  17. }
Success #stdin #stdout 0s 3012KB
stdin
Standard input is empty
stdout
Standard output is empty