fork(2) download
  1. #include <iostream>
  2.  
  3. class Foo
  4. {
  5. public:
  6. void foo()
  7. {
  8. std::cout << "hello world" << std::endl;
  9. }
  10. };
  11.  
  12. int main()
  13. {
  14. Foo& foo = *(Foo*)NULL;
  15. foo.foo();
  16. }
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
hello world