| 1 | // Licensed to the .NET Foundation under one or more agreements. |
| 2 | // The .NET Foundation licenses this file to you under the MIT license. |
| 3 | // See the LICENSE file in the project root for more information. |
| 4 | |
| 5 | /*===================================================================== |
| 6 | ** |
| 7 | ** Source: dlltest.c (FreeLibraryAndExitThread test dll) |
| 8 | ** |
| 9 | ** Purpose: This file will be used to create the shared library |
| 10 | ** that will be used in the FreeLibraryAndExitThread |
| 11 | ** test. A very simple shared library, with one function |
| 12 | ** "DllTest" which merely returns 1. |
| 13 | ** |
| 14 | ** |
| 15 | **===================================================================*/ |
| 16 | #include "pal.h" |
| 17 | |
| 18 | #if WIN32 |
| 19 | __declspec(dllexport) |
| 20 | #endif |
| 21 | |
| 22 | int PALAPI DllTest() |
| 23 | { |
| 24 | return 1; |
| 25 | } |
| 26 | |
| 27 | #if WIN32 |
| 28 | int PALAPI _DllMainCRTStartup(void *hinstDLL, int reason, void * lpvReserved) |
| 29 | { |
| 30 | return 1; |
| 31 | } |
| 32 | #endif |
| 33 | |