diff options
Diffstat (limited to 'test/support/constexpr_char_traits.hpp')
-rw-r--r-- | test/support/constexpr_char_traits.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/support/constexpr_char_traits.hpp b/test/support/constexpr_char_traits.hpp index 0a73d3ad1eadd..7508567ca1994 100644 --- a/test/support/constexpr_char_traits.hpp +++ b/test/support/constexpr_char_traits.hpp @@ -1,5 +1,5 @@ // -*- C++ -*- -//===-------_------------ constexpr_char_traits ---------------------------===// +//===-------------------- constexpr_char_traits ---------------------------===// // // The LLVM Compiler Infrastructure // @@ -12,6 +12,7 @@ #define _CONSTEXPR_CHAR_TRAITS #include <string> +#include <cassert> #include "test_macros.h" @@ -118,7 +119,7 @@ template <class _CharT> TEST_CONSTEXPR_CXX14 _CharT* constexpr_char_traits<_CharT>::copy(char_type* __s1, const char_type* __s2, size_t __n) { - _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range"); + assert(__s2 < __s1 || __s2 >= __s1+__n); char_type* __r = __s1; for (; __n; --__n, ++__s1, ++__s2) assign(*__s1, *__s2); |