Files
CMake/Tests/ExportImport/Export/testLibNoSONAME.c
Craig Scott 94cd4505f7 Tests: Make function name not match SONAME
We look for `SONAME` in the output of `readelf` to check whether the
binary contains the field.  Do not provide a symbol that may
accidentally match.

Fixes: #16894
2017-05-18 10:26:09 -04:00

11 lines
206 B
C

#if defined(_WIN32) || defined(__CYGWIN__)
#define testLibNoSONAME_EXPORT __declspec(dllexport)
#else
#define testLibNoSONAME_EXPORT
#endif
testLibNoSONAME_EXPORT int testLibNoSoName(void)
{
return 0;
}