blob: 92e12838c51e6b0eb87e06bae1b16a130e950e08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <wchar.h>
#include <assert.h>
#include <stdlib.h>
/* bugs.uclibc.org/1471 : make sure output is 0 */
static int
do_test(void)
{
wchar_t output;
int result;
output = L'A'; /* anything other than 0 will do... */
result = mbrtowc (&output, "", 1, 0);
assert (result == 0);
assert (output == 0);
return EXIT_SUCCESS;
}
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"
|