summaryrefslogtreecommitdiffstats
path: root/Tests/FindICU/Test/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FindICU/Test/main.cpp')
-rw-r--r--Tests/FindICU/Test/main.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/Tests/FindICU/Test/main.cpp b/Tests/FindICU/Test/main.cpp
new file mode 100644
index 0000000..73c3ee1
--- /dev/null
+++ b/Tests/FindICU/Test/main.cpp
@@ -0,0 +1,25 @@
+#include <unicode/utypes.h>
+#include <unicode/ustring.h>
+#include <unicode/uclean.h>
+
+#include <unicode/ucnv.h>
+#include <unicode/udat.h>
+#include <unicode/ucal.h>
+
+int
+main()
+{
+ UConverter *cnv = 0;
+ UErrorCode status = U_ZERO_ERROR;
+ ucnv_open(NULL, &status);
+
+ UChar uchars[100];
+ const char *chars = "Test";
+ if(cnv&&U_SUCCESS(status)) {
+ int32_t len = ucnv_toUChars(cnv, uchars, 100, chars, -1, &status);
+ }
+
+ ucnv_close(cnv);
+ u_cleanup();
+ return (U_FAILURE(status) ? 1 : 0);
+}