Index: lib/scudo/standalone/tests/CMakeLists.txt =================================================================== --- lib/scudo/standalone/tests/CMakeLists.txt +++ lib/scudo/standalone/tests/CMakeLists.txt @@ -12,7 +12,7 @@ -I${COMPILER_RT_SOURCE_DIR}/lib/scudo/standalone -DGTEST_HAS_RTTI=0 # Extra flags for the C++ tests - -fsized-deallocation + # TODO(kostya): find a way to make -fsized-deallocation work -Wno-mismatched-new-delete) set(SCUDO_TEST_ARCH ${SCUDO_STANDALONE_SUPPORTED_ARCH}) Index: lib/scudo/standalone/tests/wrappers_cpp_test.cc =================================================================== --- lib/scudo/standalone/tests/wrappers_cpp_test.cc +++ lib/scudo/standalone/tests/wrappers_cpp_test.cc @@ -12,6 +12,9 @@ #include #include +void operator delete(void *, size_t) noexcept; +void operator delete[](void *, size_t) noexcept; + // Note that every Cxx allocation function in the test binary will be fulfilled // by Scudo. See the comment in the C counterpart of this file.