fork download
  1. #include <iostream>
  2.  
  3.  
  4.  
  5. int foo ()
  6. {
  7. std::cout << "foo()" << std::endl ;
  8. std::exit(0) ;
  9. }
  10.  
  11.  
  12. int x = foo () ;
  13.  
  14. int main() {
  15. std::cout << "main()" << std::endl ;
  16. return 0;
  17. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
foo()