about summary refs log tree commit diff
path: root/libio/tst_wprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/tst_wprintf.c')
-rw-r--r--libio/tst_wprintf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libio/tst_wprintf.c b/libio/tst_wprintf.c
new file mode 100644
index 0000000000..0838441d2c
--- /dev/null
+++ b/libio/tst_wprintf.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <wchar.h>
+
+int
+main (int argc, char *argv[])
+{
+  fputws (L"Hello world!\n", stdout);
+  wprintf (L"This %s a %ls string: %d\n", "is", L"mixed", 42);
+  return 0;
+}