repo.or.cz
/
uclibc-ng.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ubacktrace/uargp: remove unneeded and false linker scripts
[uclibc-ng.git]
/
test
/
locale-mbwc
/
tst2_mbrtowc.c
blob
92e12838c51e6b0eb87e06bae1b16a130e950e08
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"