summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/nm.txt32
-rw-r--r--test/passes/nm.wast29
2 files changed, 61 insertions, 0 deletions
diff --git a/test/passes/nm.txt b/test/passes/nm.txt
new file mode 100644
index 000000000..99404c670
--- /dev/null
+++ b/test/passes/nm.txt
@@ -0,0 +1,32 @@
+ $a : 1
+ $b : 4
+ $c : 11
+(module
+ (memory 0)
+ (func $a
+ (nop)
+ )
+ (func $b
+ (loop $loop-out0 $loop-in1
+ (nop)
+ (i32.const 1000)
+ )
+ )
+ (func $c
+ (block $top
+ (nop)
+ (i32.const 1000)
+ (i32.add
+ (i32.add
+ (i32.const 1001)
+ (i32.const 1002)
+ )
+ (i32.add
+ (i32.const 1003)
+ (i32.const 1004)
+ )
+ )
+ (br $top)
+ )
+ )
+)
diff --git a/test/passes/nm.wast b/test/passes/nm.wast
new file mode 100644
index 000000000..72534e55d
--- /dev/null
+++ b/test/passes/nm.wast
@@ -0,0 +1,29 @@
+(module
+ (func $a
+ (nop)
+ )
+ (func $b
+ (loop
+ (nop)
+ (i32.const 1000)
+ )
+ )
+ (func $c
+ (block $top
+ (nop)
+ (i32.const 1000)
+ (i32.add
+ (i32.add
+ (i32.const 1001)
+ (i32.const 1002)
+ )
+ (i32.add
+ (i32.const 1003)
+ (i32.const 1004)
+ )
+ )
+ (br $top)
+ )
+ )
+)
+