__declspec(dllexport) int test_data = 42; __declspec(dllexport) int test_func(void) { return test_data; }