summaryrefslogtreecommitdiff
path: root/wasm2c/examples/threads/sample.wat
diff options
context:
space:
mode:
Diffstat (limited to 'wasm2c/examples/threads/sample.wat')
-rw-r--r--wasm2c/examples/threads/sample.wat6
1 files changed, 6 insertions, 0 deletions
diff --git a/wasm2c/examples/threads/sample.wat b/wasm2c/examples/threads/sample.wat
new file mode 100644
index 00000000..f9680dff
--- /dev/null
+++ b/wasm2c/examples/threads/sample.wat
@@ -0,0 +1,6 @@
+;; Module for demonstrating multi-threaded runtime
+
+(func (export "multiplyby3") (param i32) (result i32) (i32.mul (local.get 0) (i32.const 3)))
+
+(func $stackoverflow (export "stackoverflow")
+ (call $stackoverflow))