fork download
  1. int func () {
  2. throw 1;
  3. return 0;
  4. }
  5.  
  6. struct Obj {
  7. Obj ()
  8. try : i(func ())
  9. {
  10. // ...
  11. }
  12. catch (...)
  13. {
  14. i = 0;
  15. }
  16.  
  17. int i;
  18. };
  19.  
  20. int main (int argc, char *argv[])
  21. {
  22. Obj x;
  23. }
Runtime error #stdin #stdout 0s 3024KB
stdin
Standard input is empty
stdout
Standard output is empty