extern "C" int foo(void) { // Reference C++ standard library symbols. delete new int; return 0; }