re-add accidentally deleted printf("\n"); to tests2/97*.c
[tinycc.git] / tests / tests2 / 97_utf8_string_literal.c
blob5bfb6c88ef2435f50924795ba416bd59390e79fa
1 // this file contains BMP chars encoded in UTF-8
2 #include <stdio.h>
3 #include <wchar.h>
4 #include <stdlib.h>
5 #include <string.h>
7 int main()
9 char hello_world_in_czech[] = "čau, světe";
10 char hello_world_in_czech_ucn[] = "\u010dau, sv\u011bte";
11 if (sizeof(hello_world_in_czech) != sizeof(hello_world_in_czech_ucn)
12 || strcmp(hello_world_in_czech, hello_world_in_czech_ucn))
13 abort();
15 wchar_t s[] = L"hello$$你好¢¢世界€€world";
16 wchar_t *p;
17 for (p = s; *p; p++) printf("%04X ", (unsigned) *p);
18 printf("\n");
19 return 0;