summaryrefslogtreecommitdiffstats
path: root/src/mxml-test.c
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-11-26 23:33:03 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-11-26 23:33:03 (GMT)
commit8469492843e5c4acec9652eab7eaf7aa9fe076c8 (patch)
treee72b037a93cba3606260751cff81b59f2f95343d /src/mxml-test.c
parent8053624005ca6a9b8d7748a3196688cee5ab7c5d (diff)
downloadmxe-8469492843e5c4acec9652eab7eaf7aa9fe076c8.zip
mxe-8469492843e5c4acec9652eab7eaf7aa9fe076c8.tar.gz
mxe-8469492843e5c4acec9652eab7eaf7aa9fe076c8.tar.bz2
simple test program for package mxml
Diffstat (limited to 'src/mxml-test.c')
-rw-r--r--src/mxml-test.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mxml-test.c b/src/mxml-test.c
new file mode 100644
index 0000000..80be2ea
--- /dev/null
+++ b/src/mxml-test.c
@@ -0,0 +1,21 @@
+/* This file is part of mingw-cross-env. */
+/* See doc/index.html for further information. */
+
+#include <mxml.h>
+
+int main(int argc, char *argv[])
+{
+ mxml_node_t *tree;
+
+ (void)argc;
+ (void)argv;
+
+ tree = mxmlLoadString(NULL,
+ "<?xml version=\"1.0\"?>\n"
+ "<test/>\n",
+ MXML_TEXT_CALLBACK);
+
+ mxmlDelete(tree);
+
+ return 0;
+}