foo.cpp   [plain text]



#include <new>

extern "C" void* foo() {
    return new int(1);
}