Debian Codegraph @

tests/cli/invalid/issue192.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots %
2
3 (assert_malformed
4 (module quote
5 " (type (;0;) (func (param i32)))"
6 " (type (;1;) (func (param i32) (result i32)))"
7 " (type (;2;) (func (param i32 i32)))"
8 " (type (;3;) (func))"
9 " (func (;0;) (type 3))"
10 " (func (;1;) (type 0) (param i32))"
11 " (func (;2;) (type 1) (param i32) (result i32)"
12 " i32.const 1"
13 " )"
14 " (func (;3;) (type 1) (param i32) (result i32)"
15 " i32.const 2"
16 " )"
17 " (func (;4;) (type 2) (param i32 i32)"
18 " local.get 0"
19 " unreachable"
20 " unreachable"
21 " unreachable"
22 " unreachable"
23 " unreachable"
24 " unreachable"
25 " unreachable"
26 " block (param i32)"
27 " unreachable"
28 " drop"
29 ""
30 " )"
31 " (func (;5;) (type 3)"
32 " (local i32)"
33 " unreachable"
34 " unreachable"
35 " i32.mul"
36 " i32.popcnt"
37 " i32.div_u"
38 " i32.sub"
39 " i32.popcnt"
40 " i32.div_u"
41 " i32.sub"
42 " local.tee 0"
43 " global.set 0"
44 " local.get 0"
45 " i32.const 8"
46 " i32.add"
47 " i32.const 1024"
48 " call 4"
49 " local.get 0"
50 " i32.const 8"
51 " i32.add"
52 " i32.const 25166864"
53 " unreachable"
54 " call 2097156"
55 " call_indirect (type 0)"
56 " i32.const 16"
57 " i32.add"
58 " global.set 0"
59 " )"
60 " (func (;6;) (type 3)"
61 " i64.clz"
62 " )"
63 )
64 "control frames remain at end of function")