Files
raven/testdata/native_loader/private_target.c
T
Raymond Bennett 4ffc036e4c test: a private assembly a library's own manifest depends on
The program's library carries a manifest naming the private assembly
raven.private, whose manifest and library are in a folder of that name
beside the program; the library's import resolves there and the library
reports that file as its own.

Assisted-by: Claude Code:claude-opus-5-5
AI-Scope: the test fixture and its registration

(cherry picked from commit b9278f1022a1ea1395f36214f7e973b5bb22e6d5)
2026-10-29 02:26:36 -07:00

11 lines
363 B
C

#include <windows.h>
// The library of a private side-by-side assembly: it lives in the assembly's folder beside the program, not in the program's folder.
BOOL WINAPI DllMainCRTStartup(HINSTANCE instance, DWORD reason, void *reserved)
{
(void)instance, (void)reason, (void)reserved;
return TRUE;
}
__declspec(dllexport) int private_value(void) { return 42; }