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#include <stdio.h>
5#include <xplatform.h>
6
7extern "C" DLL_EXPORT bool __cdecl CheckFcnPtr(bool(STDMETHODCALLTYPE *fcnptr)(__int64))
8{
9 if (fcnptr == 0)
10 {
11 printf("CheckFcnPtr: Unmanaged received a null function pointer");
12 return false;
13 }
14 else
15 {
16 return fcnptr(999999999999);
17 }
18}
19
20int Return100()
21{
22 return 100;
23}
24