Skip to content

Commit 908ff12

Browse files
committed
Ensuring the static shim is linked properly
Signed-off-by: Matthew A Johnson <matjoh@microsoft.com>
1 parent d90a191 commit 908ff12

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/vcpkg-consumer/test_static_shim.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
*/
66
#include <stdlib.h>
77

8+
void *sn_malloc(size_t);
9+
void sn_free(void *);
10+
811
int main()
912
{
10-
void* p = malloc(64);
13+
void* p = sn_malloc(64);
1114
if (p == nullptr)
1215
return 1;
13-
free(p);
16+
sn_free(p);
1417
return 0;
1518
}

0 commit comments

Comments
 (0)