fork download
  1. class base{};
  2. class derived : base {};
  3.  
  4. void func()
  5. {
  6. try
  7. {
  8. derived tt;
  9. throw tt;
  10. }
  11. catch(base){}
  12. }
  13. int main()
  14. {
  15. try{
  16. func();
  17. }
  18. catch(base){}
  19. }
Runtime error #stdin #stdout 0.01s 2852KB
stdin
Standard input is empty
stdout
Standard output is empty