diff options
Diffstat (limited to 'tests/string_test.cpp')
-rw-r--r-- | tests/string_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/string_test.cpp b/tests/string_test.cpp index 66cf848..1d63c76 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -1395,3 +1395,8 @@ TEST(string, strnlen_147048) { EXPECT_EQ(0U, strnlen(heap_src, 1024*1024*1024)); delete[] heap_src; } + +TEST(string, mempcpy) { + char dst[6]; + ASSERT_EQ(&dst[4], reinterpret_cast<char*>(mempcpy(dst, "hello", 4))); +} |