summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/gnu-libiconv/gnu-libiconv.cpp
blob: 21f12dd42dc8d77942798bfbd546c503f1f02002 (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("", "");

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

    iconv_close(x);

    return 0;
}
#endif