Debian Codegraph @

tests/cli/code-after-end.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots %
2
3 (assert_malformed
4 (module quote
5 "(func end)")
6 "operators remaining after end of function")
7
8 ;; binary version of previous test
9 (assert_malformed
10 (module binary
11 "\00asm\01\00\00\00\01\04\01\60\00\00\03\02\01\00\0a\05\01\03\00\0b\0b")
12 "operators remaining after end of function")
13
14 (assert_malformed
15 (module quote
16 "(func end block)")
17 "operators remaining after end of function")
18
19 ;; binary version of previous test
20 (assert_malformed
21 (module binary
22 "\00asm\01\00\00\00\01\04\01\60\00\00\03\02\01\00\0a\07\01\05\00\0b\02\40\0b")
23 "operators remaining after end of function")
24
25 (assert_malformed
26 (module quote
27 "(func end i32.add)")
28 "operators remaining after end of function")
29
30 ;; binary version of previous test
31 (assert_malformed
32 (module binary
33 "\00asm\01\00\00\00\01\04\01\60\00\00\03\02\01\00\0a\06\01\04\00\0b\6a\0b")
34 "operators remaining after end of function")
35
36 (assert_malformed
37 (module quote
38 "(func end unreachable)")
39 "operators remaining after end of function")
40
41 ;; binary version of previous test
42 (assert_malformed
43 (module binary
44 "\00asm\01\00\00\00\01\04\01\60\00\00\03\02\01\00\0a\06\01\04\00\0b\00\0b")
45 "operators remaining after end of function")
46
47 (assert_malformed
48 (module quote
49 "(func end br 0)")
50 "operators remaining after end of function")
51
52 ;; binary version of previous test
53 (assert_malformed
54 (module binary
55 "\00asm\01\00\00\00\01\04\01\60\00\00\03\02\01\00\0a\07\01\05\00\0b\0c\00\0b")
56 "operators remaining after end of function")
57
58 (assert_malformed
59 (module quote
60 "(func end return)")
61 "operators remaining after end of function")
62
63 ;; binary version of previous test
64 (assert_malformed
65 (module binary
66 "\00asm\01\00\00\00\01\04\01\60\00\00\03\02\01\00\0a\06\01\04\00\0b\0f\0b")
67 "operators remaining after end of function")
68
69 (assert_malformed
70 (module quote
71 "(func end return_call 0)")
72 "operators remaining after end of function")
73
74 ;; binary version of previous test
75 (assert_malformed
76 (module binary
77 "\00asm\01\00\00\00\01\04\01\60\00\00\03\02\01\00\0a\07\01\05\00\0b\12\00\0b")
78 "operators remaining after end of function")