summaryrefslogtreecommitdiff
path: root/src/pal/tests
diff options
context:
space:
mode:
authorAdeel Mujahid <adeelbm@outlook.com>2019-02-09 03:24:59 +0200
committerJan Vorlicek <janvorli@microsoft.com>2019-02-09 02:24:59 +0100
commit5bb7eb68035e98e356aba68115e28ed22d3d34aa (patch)
tree6a2ce545da5c8c32591910ffcb2fe86186894c22 /src/pal/tests
parent8e79024b436f348ea9f96487a6d54067e750f596 (diff)
downloadcoreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.gz
coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.bz2
coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.zip
Set visibility option to hidden (#21924)
Diffstat (limited to 'src/pal/tests')
-rw-r--r--src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest1.cpp8
-rw-r--r--src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest2.cpp8
-rw-r--r--src/pal/tests/palsuite/filemapping_memmgt/GetProcAddress/test1/test1.cpp2
3 files changed, 13 insertions, 5 deletions
diff --git a/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest1.cpp b/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest1.cpp
index 22602bfa07..bbcb664bfe 100644
--- a/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest1.cpp
+++ b/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest1.cpp
@@ -15,7 +15,9 @@
#include <palsuite.h>
extern "C"
-int InitializeDllTest1()
+int
+PALAPI
+InitializeDllTest1()
{
PAL_SetInitializeDLLFlags(PAL_INITIALIZE_DLL | PAL_INITIALIZE_REGISTER_SIGNALS);
return PAL_InitializeDLL();
@@ -36,7 +38,9 @@ BOOL bTry = FALSE;
BOOL bExcept = FALSE;
extern "C"
-int DllTest1()
+int
+PALAPI
+DllTest1()
{
Trace("Starting pal_sxs test1 DllTest1\n");
diff --git a/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest2.cpp b/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest2.cpp
index 222898f812..084d990404 100644
--- a/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest2.cpp
+++ b/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest2.cpp
@@ -15,7 +15,9 @@
#include <palsuite.h>
extern "C"
-int InitializeDllTest2()
+int
+PALAPI
+InitializeDllTest2()
{
PAL_SetInitializeDLLFlags(PAL_INITIALIZE_DLL | PAL_INITIALIZE_REGISTER_SIGNALS);
return PAL_InitializeDLL();
@@ -36,7 +38,9 @@ BOOL bTry = FALSE;
BOOL bExcept = FALSE;
extern "C"
-int DllTest2()
+int
+PALAPI
+DllTest2()
{
Trace("Starting pal_sxs test1 DllTest2\n");
diff --git a/src/pal/tests/palsuite/filemapping_memmgt/GetProcAddress/test1/test1.cpp b/src/pal/tests/palsuite/filemapping_memmgt/GetProcAddress/test1/test1.cpp
index 5515ae4562..7b89dfeb2b 100644
--- a/src/pal/tests/palsuite/filemapping_memmgt/GetProcAddress/test1/test1.cpp
+++ b/src/pal/tests/palsuite/filemapping_memmgt/GetProcAddress/test1/test1.cpp
@@ -15,7 +15,7 @@
**===========================================================================*/
#include <palsuite.h>
-typedef int (PALAPI *SIMPLEFUNCTION)(int);
+typedef int (PALAPI_NOEXPORT *SIMPLEFUNCTION)(int);
/* SHLEXT is defined only for Unix variants */
#if defined(SHLEXT)