tinycc/tests/tests2/147_def_library.c
Mounir IDRASSI 31020bf963 win32: handle quoted LIBRARY names in def files
Parse quoted LIBRARY names as a single token and add the default .dll
extension when needed. Allocate the stored name dynamically.

Add a Windows regression test using a quoted name with spaces.
2026-07-28 11:01:33 +09:00

22 lines
273 B
C

#ifdef DEF_LIBRARY_DLL
__declspec(dllexport) int def_library_value(void)
{
return 42;
}
#else
#include <stdio.h>
int def_library_value(void);
int main(void)
{
int value = def_library_value();
printf("value: %d\n", value);
return value != 42;
}
#endif