From 8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Sat, 23 Aug 2025 01:28:41 +0300 Subject: Ungrateful changes, added more stuff --- tests/un/win_wstr.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/un/win_wstr.c (limited to 'tests/un/win_wstr.c') diff --git a/tests/un/win_wstr.c b/tests/un/win_wstr.c new file mode 100644 index 0000000..55cec57 --- /dev/null +++ b/tests/un/win_wstr.c @@ -0,0 +1,26 @@ +#include +#if !defined(OS_WINDOWS) +int main(void) { + return 0; +} +#else + +#include +#pragma comment(lib, "User32.lib") + +int main(void) { + wchar *caption, *text; + Allocator talloc = un_allocator_get_temporary(); + + + caption = un_wstring_from_cstring(UN_CSTR "Внимание", talloc); + text = un_wstring_from_cstring(UN_CSTR "Тестовое сообщение", talloc); + + + assert(caption != NULL); + assert(text != NULL); + + // MessageBoxW(NULL, text, caption, MB_OK); +} + +#endif -- cgit v1.2.3-70-g09d2