summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/c_runtime/memmove
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/c_runtime/memmove')
-rw-r--r--src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt2
-rw-r--r--src/pal/tests/palsuite/c_runtime/memmove/test1/test1.cpp (renamed from src/pal/tests/palsuite/c_runtime/memmove/test1/test1.c)6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt
index cf50ec0..db6f65e 100644
--- a/src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt
+++ b/src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCES
- test1.c
+ test1.cpp
)
add_executable(paltest_memmove_test1
diff --git a/src/pal/tests/palsuite/c_runtime/memmove/test1/test1.c b/src/pal/tests/palsuite/c_runtime/memmove/test1/test1.cpp
index c1af871..8279d67 100644
--- a/src/pal/tests/palsuite/c_runtime/memmove/test1/test1.c
+++ b/src/pal/tests/palsuite/c_runtime/memmove/test1/test1.cpp
@@ -20,7 +20,7 @@ int __cdecl main(int argc, char **argv)
char testB[15] = "aabbccddeeffgg";
char testC[15] = "aabbccddeeffgg";
char testD[15] = "aabbccddeeffgg";
- char insString[3] = "zzz";
+ char insString[4] = "zzz";
char *retVal;
if (PAL_Initialize(argc, argv))
@@ -68,7 +68,7 @@ int __cdecl main(int argc, char **argv)
/* move a string to the middle of testC */
- retVal = memmove(testC+5, insString, 3);
+ retVal = (char*)memmove(testC+5, insString, 3);
if(retVal != testC+5)
{
Fail("memmove: The function did not return the correct "
@@ -83,7 +83,7 @@ int __cdecl main(int argc, char **argv)
/* move a string to the end of testD */
- retVal = memmove(testD+11, insString, 3);
+ retVal = (char*)memmove(testD+11, insString, 3);
if(retVal != testD+11)
{
Fail("memmove: The function did not return the correct "