summaryrefslogtreecommitdiff
path: root/tests/dylib-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dylib-test.c')
-rw-r--r--tests/dylib-test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/dylib-test.c b/tests/dylib-test.c
new file mode 100644
index 0000000..ae824b0
--- /dev/null
+++ b/tests/dylib-test.c
@@ -0,0 +1,12 @@
+#include "dylib.h"
+#include <stdlib.h>
+#include <stdio.h>
+
+void entry(void) {
+ the_number = 7;
+ printf("%d\n",the_number);
+ bigger();
+ printf("%d\n",the_number);
+
+ exit(0);
+}