Debian Codegraph @

internal/integration_test/spectest/v2/testdata/obsolete-keywords.wast

raw
1 ;; Renamed in https://github.com/WebAssembly/spec/pull/720
2 (assert_malformed
3 (module quote
4 "(memory 1)"
5 "(func (drop (current_memory)))"
6 )
7 "unknown operator current_memory"
8 )
9
10 (assert_malformed
11 (module quote
12 "(memory 1)"
13 "(func (drop (grow_memory (i32.const 0))))"
14 )
15 "unknown operator grow_memory"
16 )
17
18 ;; Renamed in https://github.com/WebAssembly/spec/pull/926
19 (assert_malformed
20 (module quote
21 "(func (local $i i32) (drop (get_local $i)))"
22 )
23 "unknown operator get_local"
24 )
25
26 (assert_malformed
27 (module quote
28 "(func (local $i i32) (set_local $i (i32.const 0)))"
29 )
30 "unknown operator set_local"
31 )
32
33 (assert_malformed
34 (module quote
35 "(func (local $i i32) (drop (tee_local $i (i32.const 0))))"
36 )
37 "unknown operator tee_local"
38 )
39
40 (assert_malformed
41 (module quote
42 "(global $g anyfunc (ref.null func))"
43 )
44 "unknown operator anyfunc"
45 )
46
47 (assert_malformed
48 (module quote
49 "(global $g i32 (i32.const 0))"
50 "(func (drop (get_global $g)))"
51 )
52 "unknown operator get_global"
53 )
54
55 (assert_malformed
56 (module quote
57 "(global $g (mut i32) (i32.const 0))"
58 "(func (set_global $g (i32.const 0)))"
59 )
60 "unknown operator set_global"
61 )
62
63 (assert_malformed
64 (module quote
65 "(func (drop (i32.wrap/i64 (i64.const 0))))"
66 )
67 "unknown operator i32.wrap/i64"
68 )
69
70 (assert_malformed
71 (module quote
72 "(func (drop (i32.trunc_s:sat/f32 (f32.const 0))))"
73 )
74 "unknown operator i32.trunc_s:sat/f32"
75 )
76
77 (assert_malformed
78 (module quote
79 "(func (drop (f32x4.convert_s/i32x4 (v128.const i64x2 0 0))))"
80 )
81 "unknown operator f32x4.convert_s/i32x4"
82 )