fork(2) download
  1. #include <iostream>
  2.  
  3. class A {
  4. public:
  5. void foo() {
  6. std::cout << "Hello from the land of undefined behavior!" << std::endl;
  7. }
  8. };
  9.  
  10. int main()
  11. {
  12. A* a = 0;
  13. a->foo();
  14. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
Hello from the land of undefined behavior!