fork(5) download
  1. #include <iostream>
  2.  
  3. void Foo() __attribute__((noreturn));
  4. void m_call_throw() __attribute__((noreturn));;
  5.  
  6. void Foo(bool b)
  7. {
  8. if (b)
  9. {
  10. throw std::exception{};
  11. }
  12.  
  13. m_call_throw();
  14. }
  15.  
  16. void m_call_throw()
  17. {
  18. throw std::exception{};
  19. }
  20.  
  21. int main()
  22. {
  23. try
  24. {
  25. Foo(false);
  26. Foo(true);
  27. }
  28. catch (...)
  29. {
  30.  
  31. }
  32. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty