diff options
author | Elliott Hughes <enh@google.com> | 2015-02-18 21:29:13 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-02-18 22:02:56 -0800 |
commit | 3cfb52aab2548df635e9672218cc433e14922fd3 (patch) | |
tree | eebbf162a1e5e1ed8726a9129ea17a410ebaa3ed /tests/wchar_test.cpp | |
parent | 3e1b5f46c07aef5983ecf2feb1c3369b2cd200c0 (diff) | |
download | android_bionic-3cfb52aab2548df635e9672218cc433e14922fd3.tar.gz android_bionic-3cfb52aab2548df635e9672218cc433e14922fd3.tar.bz2 android_bionic-3cfb52aab2548df635e9672218cc433e14922fd3.zip |
Add GNU extensions mempcpy and wmemcpy.
Used by elfutils. On the bright side, they stopped using __mempcpy.
Bug: 18374026
Change-Id: Id29bbe6ef1c5ed5a171bb6c32182f129d8332abb
Diffstat (limited to 'tests/wchar_test.cpp')
-rw-r--r-- | tests/wchar_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/wchar_test.cpp b/tests/wchar_test.cpp index a1d150117..e86d56dc0 100644 --- a/tests/wchar_test.cpp +++ b/tests/wchar_test.cpp @@ -667,3 +667,8 @@ TEST(wchar, wcstoull_l_EINVAL) { wcstoull_l(L"123", NULL, 37, LC_GLOBAL_LOCALE); ASSERT_EQ(EINVAL, errno); } + +TEST(wchar, wmempcpy) { + wchar_t dst[6]; + ASSERT_EQ(&dst[4], wmempcpy(dst, L"hello", 4)); +} |