summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/iconv/iconv.cpp
blob: c0f35a398b31b9c811500aadcf510d238b8d686a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#if defined(__sgi)
#error "iconv not supported on IRIX"
#else
#include <iconv.h>

int main(int, char **)
{
    iconv_t x = iconv_open("", "");

    char *inp;
    char *outp;
    size_t inbytes, outbytes;
    iconv(x, &inp, &inbytes, &outp, &outbytes);

    iconv_close(x);

    return 0;
}
#endif