#include <new> inline void * operator new (std::size_t) { extern void *bare_new_erroneously_called(); return bare_new_erroneously_called(); } int main () { int *x = new int; delete x; }
Standard input is empty
/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
Standard output is empty