ubacktrace/uargp: remove unneeded and false linker scripts
[uclibc-ng.git] / test / locale-mbwc / tst2_mbrtowc.c
blob92e12838c51e6b0eb87e06bae1b16a130e950e08
1 #include <wchar.h>
2 #include <assert.h>
3 #include <stdlib.h>
5 /* bugs.uclibc.org/1471 : make sure output is 0 */
6 static int
7 do_test(void)
9 wchar_t output;
10 int result;
12 output = L'A'; /* anything other than 0 will do... */
13 result = mbrtowc (&output, "", 1, 0);
15 assert (result == 0);
16 assert (output == 0);
18 return EXIT_SUCCESS;
20 #define TEST_FUNCTION do_test ()
21 #include "../test-skeleton.c"