fork(1) download
  1. #include <iostream>
  2.  
  3. class hoge {
  4. public:
  5. ~hoge()
  6. {
  7. std::cout << "~hoge()" << std::endl;
  8. }
  9. } h;
  10.  
  11. void func()
  12. {
  13. throw 0;
  14. }
  15.  
  16. int main()
  17. {
  18. func();
  19. }
Runtime error #stdin #stdout #stderr 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
terminate called after throwing an instance of 'int'