Add test case for wide char handling in wide string literal

This commit is contained in:
Zhang Boyang 2017-09-10 16:50:19 +08:00
parent b39810ff78
commit 978d1ecce0
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// this file contains BMP chars encoded in UTF-8
#include <stdio.h>
#include <wchar.h>
int main()
{
wchar_t s[] = L"hello$$你好¢¢世界€€world";
wchar_t *p;
for (p = s; *p; p++) printf("%04X ", (unsigned) *p);
printf("\n");
return 0;
}

View File

@ -0,0 +1 @@
0068 0065 006C 006C 006F 0024 0024 4F60 597D 00A2 00A2 4E16 754C 20AC 20AC 0077 006F 0072 006C 0064