summaryrefslogtreecommitdiff
path: root/test/iconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/iconv.c')
-rw-r--r--test/iconv.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/iconv.c b/test/iconv.c
new file mode 100644
index 0000000..fd1eff7
--- /dev/null
+++ b/test/iconv.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+
+#include <iconv/iconv.h>
+
+#include "testutils.h"
+
+int main(int argc, char **argv)
+{
+ if (argc != 2) {
+ printf("Usage: %s <aliases_file>\n", argv[0]);
+ return 1;
+ }
+
+ assert(iconv_initialise(argv[1]) == 1);
+
+ iconv_finalise();
+
+ printf("PASS\n");
+
+ return 0;
+}
+