fork(1) download
  1. #include <iostream>
  2.  
  3. class Test {
  4. public:
  5. void test() {
  6. std::cout << this << std::endl;
  7. }
  8. };
  9.  
  10. Test & create()
  11. {
  12. return *((Test*)NULL);
  13. }
  14.  
  15. int main()
  16. {
  17. Test &t = create();
  18. t.test();
  19. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
0