diff options
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)); +} |