extern "C" void foo() { int *a = new int(3); delete a; }