aboutsummaryrefslogtreecommitdiff
path: root/example/shared_library/mathtest.zig
diff options
context:
space:
mode:
authorJosh Wolfe <thejoshwolfe@gmail.com>2015-11-30 22:12:21 -0700
committerJosh Wolfe <thejoshwolfe@gmail.com>2015-11-30 22:12:21 -0700
commit00f4c05784c05552e1e379b98c09161c936cfb31 (patch)
tree5b2234cae585c5ac3a2cb23503908b0a6e2a27e3 /example/shared_library/mathtest.zig
parentabbc3957019c3a12dacd54869ff18b91c3f07699 (diff)
parent55b8472374eede496b59396dbe253b05b16063e1 (diff)
downloadzig-00f4c05784c05552e1e379b98c09161c936cfb31.tar.gz
zig-00f4c05784c05552e1e379b98c09161c936cfb31.zip
merge conflicts
Diffstat (limited to 'example/shared_library/mathtest.zig')
-rw-r--r--example/shared_library/mathtest.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/example/shared_library/mathtest.zig b/example/shared_library/mathtest.zig
new file mode 100644
index 0000000000..35ec901523
--- /dev/null
+++ b/example/shared_library/mathtest.zig
@@ -0,0 +1,6 @@
+#version("2.0.0")
+export library "mathtest";
+
+export fn add(a: i32, b: i32) -> i32 {
+ return a + b;
+}