summaryrefslogtreecommitdiff
path: root/test/passes/nm.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/nm.wast')
-rw-r--r--test/passes/nm.wast37
1 files changed, 22 insertions, 15 deletions
diff --git a/test/passes/nm.wast b/test/passes/nm.wast
index 72534e55d..d75a2b99e 100644
--- a/test/passes/nm.wast
+++ b/test/passes/nm.wast
@@ -1,29 +1,36 @@
(module
- (func $a
+ (memory 0)
+ (type $0 (func))
+ (func $a (type $0)
(nop)
)
- (func $b
- (loop
- (nop)
- (i32.const 1000)
+ (func $b (type $0)
+ (drop
+ (loop $loop-out0 $loop-in1
+ (nop)
+ (i32.const 1000)
+ )
)
)
- (func $c
+ (func $c (type $0)
(block $top
(nop)
- (i32.const 1000)
- (i32.add
- (i32.add
- (i32.const 1001)
- (i32.const 1002)
- )
+ (drop
+ (i32.const 1000)
+ )
+ (drop
(i32.add
- (i32.const 1003)
- (i32.const 1004)
+ (i32.add
+ (i32.const 1001)
+ (i32.const 1002)
+ )
+ (i32.add
+ (i32.const 1003)
+ (i32.const 1004)
+ )
)
)
(br $top)
)
)
)
-