]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/test/locale-mbwc/tst2_mbrtowc.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / test / locale-mbwc / tst2_mbrtowc.c
1 #include <wchar.h>
2 #include <assert.h>
3 #include <stdlib.h>
4
5 /* bugs.uclibc.org/1471 : make sure output is 0  */
6 static int
7 do_test(void)
8 {
9   wchar_t output;
10   int result;
11
12   output = L'A';                /* anything other than 0 will do... */
13   result = mbrtowc (&output, "", 1, 0);
14
15   assert (result == 0);
16   assert (output == 0);
17
18   return EXIT_SUCCESS;
19 }
20 #define TEST_FUNCTION do_test ()
21 #include "../test-skeleton.c"