summaryrefslogtreecommitdiff
path: root/test/passes
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes')
-rw-r--r--test/passes/print-function-map.txt13
-rw-r--r--test/passes/print-function-map.wast6
2 files changed, 19 insertions, 0 deletions
diff --git a/test/passes/print-function-map.txt b/test/passes/print-function-map.txt
new file mode 100644
index 000000000..a10c11a1b
--- /dev/null
+++ b/test/passes/print-function-map.txt
@@ -0,0 +1,13 @@
+0:Foo
+1:bar
+2:baz
+(module
+ (type $FUNCSIG$v (func))
+ (import "env" "foo" (func $Foo))
+ (func $bar (; 1 ;) (type $FUNCSIG$v)
+ (nop)
+ )
+ (func $baz (; 2 ;) (type $FUNCSIG$v)
+ (nop)
+ )
+)
diff --git a/test/passes/print-function-map.wast b/test/passes/print-function-map.wast
new file mode 100644
index 000000000..91b638ba9
--- /dev/null
+++ b/test/passes/print-function-map.wast
@@ -0,0 +1,6 @@
+(module
+ (import "env" "foo" (func $Foo))
+ (func $bar)
+ (func $baz)
+)
+