aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/pp.c b/test/pp.c
index 85b4cba..db90f23 100644
--- a/test/pp.c
+++ b/test/pp.c
@@ -3,8 +3,8 @@
#include "pp.h"
#include <stddef.h>
#include <stdio.h>
-#include <assert.h>
-#include <limits.h>
+#include <wchar.h>
+#include <locale.h>
//
#define CATl(a) a##bar
#define CATr(a) foo##a
@@ -39,6 +39,10 @@ main(void)
"%s %g\n", str(Foo,5), xstr(Foo), CAT(1.5,e3f) + CAT(7,)-CAT(,1));
printf("join: \"%s\"\n", p);
+ setlocale(LC_ALL, "en_US.utf8");
+
+ printf("wide\t L\"%ls\", U+%x\n", L"abc123 猫,€á💫", L'🦋');
+
PUT\
S\
("Output ends here\\
@@ -47,6 +51,5 @@ S\
*/
);
-
CAT(ret,urn) 0;
}