summaryrefslogtreecommitdiff
path: root/test/support/asan_testing.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/asan_testing.h')
-rw-r--r--test/support/asan_testing.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/support/asan_testing.h b/test/support/asan_testing.h
index 45ad04b1bb2ca..678f12a91b65a 100644
--- a/test/support/asan_testing.h
+++ b/test/support/asan_testing.h
@@ -10,12 +10,12 @@
#ifndef ASAN_TESTING_H
#define ASAN_TESTING_H
-#include <__config>
+#include "test_macros.h"
-#ifndef _LIBCPP_HAS_NO_ASAN
+#if TEST_HAS_FEATURE(address_sanitizer)
extern "C" int __sanitizer_verify_contiguous_container
( const void *beg, const void *mid, const void *end );
-
+
template <typename T, typename Alloc>
bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c )
{
@@ -27,11 +27,11 @@ bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c )
#else
template <typename T, typename Alloc>
-bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c )
+bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &)
{
return true;
}
#endif
-
+
#endif // ASAN_TESTING_H