]> git.ipfire.org Git - thirdparty/glibc.git/blame - iconvdata/tst-iconv6.c
Regenerate libc.pot
[thirdparty/glibc.git] / iconvdata / tst-iconv6.c
CommitLineData
74ed1159
UD
1/* BZ #2569 */
2
3#include <iconv.h>
4#include <stdio.h>
5
6static int
7do_test (void)
8{
9 iconv_t cd0 = iconv_open ("ISO-8859-7", "UTF-16LE");
10 if (cd0 == (iconv_t) -1)
11 {
12 puts ("first iconv_open failed");
13 return 1;
14 }
15 iconv_t cd1 = iconv_open ("ISO-8859-7", "UTF-16LE");
16 if (cd1 == (iconv_t) -1)
17 {
18 puts ("second iconv_open failed");
19 return 1;
20 }
21 if (iconv_close (cd0) != 0)
22 {
23 puts ("first iconv_close failed");
24 return 1;
25 }
26 if (iconv_close (cd1) != 0)
27 {
28 puts ("second iconv_close failed");
29 return 1;
30 }
31 return 0;
32}
33
34#define TEST_FUNCTION do_test ()
35#include "../test-skeleton.c"