Index: test/libcxx/containers/sequences/vector/asan.pass.cpp =================================================================== --- test/libcxx/containers/sequences/vector/asan.pass.cpp +++ test/libcxx/containers/sequences/vector/asan.pass.cpp @@ -21,8 +21,11 @@ #include "test_macros.h" #ifndef _LIBCPP_HAS_NO_ASAN -extern "C" void __asan_set_error_exit_code(int); +extern "C" void __sanitizer_set_death_callback(void (*callback)(void)); +void do_exit() { + exit(0); +} int main() { @@ -48,7 +51,7 @@ assert(is_contiguous_container_asan_correct(v)); } - __asan_set_error_exit_code(0); + __sanitizer_set_death_callback(do_exit); { typedef int T; typedef std::vector C;