summaryrefslogtreecommitdiff
path: root/test/passes/generate-dyncalls.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/generate-dyncalls.wast')
-rw-r--r--test/passes/generate-dyncalls.wast10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/passes/generate-dyncalls.wast b/test/passes/generate-dyncalls.wast
new file mode 100644
index 000000000..6fbfcc331
--- /dev/null
+++ b/test/passes/generate-dyncalls.wast
@@ -0,0 +1,10 @@
+(module
+ (func $f1 (result i32)
+ (i32.const 1024)
+ )
+ (func $f2 (param i32) (result i64)
+ (i64.const 42)
+ )
+ (table 2 2 funcref)
+ (elem (i32.const 0) $f1 $f2)
+)