[libcxx] r245467 - Replace __asan_set_error_exit_code() with __sanitizer_set_death_callback()
Alexey Samsonov via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 19 10:28:01 PDT 2015
Author: samsonov
Date: Wed Aug 19 12:28:01 2015
New Revision: 245467
URL: http://llvm.org/viewvc/llvm-project?rev=245467&view=rev
Log:
Replace __asan_set_error_exit_code() with __sanitizer_set_death_callback()
Summary: We are going to remove the former soon.
Reviewers: EricWF
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D12117
Modified:
libcxx/trunk/test/libcxx/containers/sequences/vector/asan.pass.cpp
Modified: libcxx/trunk/test/libcxx/containers/sequences/vector/asan.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/containers/sequences/vector/asan.pass.cpp?rev=245467&r1=245466&r2=245467&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/containers/sequences/vector/asan.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/containers/sequences/vector/asan.pass.cpp Wed Aug 19 12:28:01 2015
@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5
+
// <vector>
// reference operator[](size_type n);
@@ -21,8 +23,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 +53,7 @@ int main()
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<T> C;
More information about the cfe-commits
mailing list