summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/c_runtime/realloc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/c_runtime/realloc')
-rw-r--r--src/pal/tests/palsuite/c_runtime/realloc/test1/CMakeLists.txt2
-rw-r--r--src/pal/tests/palsuite/c_runtime/realloc/test1/test1.cpp (renamed from src/pal/tests/palsuite/c_runtime/realloc/test1/test1.c)2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pal/tests/palsuite/c_runtime/realloc/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/realloc/test1/CMakeLists.txt
index 0a9f34fc3b..62830a0fe8 100644
--- a/src/pal/tests/palsuite/c_runtime/realloc/test1/CMakeLists.txt
+++ b/src/pal/tests/palsuite/c_runtime/realloc/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_realloc_test1
diff --git a/src/pal/tests/palsuite/c_runtime/realloc/test1/test1.c b/src/pal/tests/palsuite/c_runtime/realloc/test1/test1.cpp
index d0dd128cc1..64a9270eab 100644
--- a/src/pal/tests/palsuite/c_runtime/realloc/test1/test1.c
+++ b/src/pal/tests/palsuite/c_runtime/realloc/test1/test1.cpp
@@ -55,7 +55,7 @@ int __cdecl main(int argc, char **argv)
}
/* free the buffer */
- testA = realloc(testA, 0);
+ testA = (char*)realloc(testA, 0);
if (testA != NULL)
{
Fail("Realloc didn't return NULL when called with a length "