summaryrefslogtreecommitdiff
path: root/testing/embedding/add2-test.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2016-01-01 11:20:45 +0100
committerArmin Rigo <arigo@tunes.org>2016-01-01 11:20:45 +0100
commitfc90431d8dc8df0af1dd0367eeee8bb76c36168f (patch)
tree6256421155a892e24c704a5108b236b6908e42cf /testing/embedding/add2-test.c
parent32613975eab162905247ef21eda03a387eddee97 (diff)
downloadcffi-fc90431d8dc8df0af1dd0367eeee8bb76c36168f.tar.gz
A test with two modules.
Diffstat (limited to 'testing/embedding/add2-test.c')
-rw-r--r--testing/embedding/add2-test.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/embedding/add2-test.c b/testing/embedding/add2-test.c
new file mode 100644
index 0000000..9620843
--- /dev/null
+++ b/testing/embedding/add2-test.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+extern int add1(int, int);
+extern int add2(int, int, int);
+
+
+int main(void)
+{
+ int x, y;
+ x = add1(40, 2);
+ y = add2(100, -5, -20);
+ printf("got: %d %d\n", x, y);
+ return 0;
+}