SanitizerSupport.cpp 468 B

123456789101112131415
  1. /*
  2. * Copyright 2022 Axel Waggershauser
  3. */
  4. // SPDX-License-Identifier: Apache-2.0
  5. #include "gtest/gtest.h"
  6. // see http://google.github.io/googletest/advanced.html#sanitizer-integration
  7. extern "C"
  8. {
  9. void __ubsan_on_report() { FAIL() << "Encountered an undefined behavior sanitizer error"; }
  10. void __asan_on_error() { FAIL() << "Encountered an address sanitizer error"; }
  11. void __tsan_on_report() { FAIL() << "Encountered a thread sanitizer error"; }
  12. } // extern "C"