summaryrefslogtreecommitdiff
path: root/test/add.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/add.c')
-rw-r--r--test/add.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/add.c b/test/add.c
new file mode 100644
index 000000000..a7d7e982f
--- /dev/null
+++ b/test/add.c
@@ -0,0 +1,6 @@
+#include <emscripten.h>
+
+int EMSCRIPTEN_KEEPALIVE add(int x, int y) {
+ return x + y;
+}
+