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. }
  15.  
  16. int i;
  17. };
  18.  
  19. int main (int argc, char *argv[])
  20. {
  21. Obj x;
  22. }
Runtime error #stdin #stdout 0s 2980KB
stdin
Standard input is empty
stdout
Standard output is empty