aboutsummaryrefslogtreecommitdiff
path: root/tests/un/win_wstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/un/win_wstr.c')
-rw-r--r--tests/un/win_wstr.c26
1 files changed, 26 insertions, 0 deletions
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 <ungrateful.h>
+#if !defined(OS_WINDOWS)
+int main(void) {
+ return 0;
+}
+#else
+
+#include <windows.h>
+#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