summaryrefslogtreecommitdiff
path: root/tests/test.c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-30 17:15:14 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-30 17:15:14 -0400
commit2307ccdcc5eb4ddfe719ddcbea999f7705ec79c3 (patch)
tree4be9b76a5e655b9f28be47710cc47e600a369a14 /tests/test.c
parentdb2f1f208afef9110d8a5796a2325928a92b62cc (diff)
C FFI compiler options
Diffstat (limited to 'tests/test.c')
-rw-r--r--tests/test.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test.c b/tests/test.c
new file mode 100644
index 00000000..c40eb966
--- /dev/null
+++ b/tests/test.c
@@ -0,0 +1,15 @@
+#include "../include/urweb.h"
+
+typedef uw_Basis_string uw_Test_t;
+
+uw_Test_t uw_Test_create(uw_context ctx, uw_Basis_string s) {
+ return s;
+}
+
+uw_Basis_string uw_Test_out(uw_context ctx, uw_Test_t s) {
+ return s;
+}
+
+uw_Test_t uw_Test_frob(uw_context ctx, uw_Test_t s1, uw_Basis_string s2) {
+ return uw_Basis_strcat(ctx, s1, s2);
+}