14 lines
338 B
C++
14 lines
338 B
C++
|
|
||
|
#include <gtest/gtest.h>
|
||
|
|
||
|
extern "C" {
|
||
|
void __ubsan_on_report() {
|
||
|
FAIL() << "Encountered an undefined behavior sanitizer error";
|
||
|
}
|
||
|
void __asan_on_error() {
|
||
|
FAIL() << "Encountered an address sanitizer error";
|
||
|
}
|
||
|
void __tsan_on_report() {
|
||
|
FAIL() << "Encountered a thread sanitizer error";
|
||
|
}
|
||
|
}
|