fork(2) download
  1. #include <new>
  2.  
  3. inline void * operator new (std::size_t) {
  4. extern void *bare_new_erroneously_called();
  5. return bare_new_erroneously_called();
  6. }
  7.  
  8. int main ()
  9. {
  10. int *x = new int;
  11. delete x;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/geXgjE/ccrEKfzG.o: In function `main':
prog.cpp:(.text.startup+0xa): undefined reference to `bare_new_erroneously_called()'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty