(_dl_init): Fix test of the size of the preinit_array section. (call_init): Optimize...
[glibc.git] / stdio-common / tst-wc-printf.c
blob1858db1962fb8de0da037421ef0bd19fcb14c364
1 #define _GNU_SOURCE 1
2 #include <wchar.h>
3 #include <stdio.h>
4 #include <string.h>
5 #include <wctype.h>
7 int
8 main (void)
10 wchar_t tmp[3];
11 tmp[0] = '8';
12 tmp[1] = '1';
13 tmp[2] = 0;
15 printf ("Test for wide character output with printf\n");
17 printf ("with %%S: %S\n", tmp);
19 printf ("with %%C: %C\n", tmp[0]);
21 return 0;