Skip to content

Commit b32130d

Browse files
committed
Fix table_ops fuzz generator test's expected results
1 parent 72f3861 commit b32130d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

crates/fuzzing/src/generators/table_ops.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,19 +266,20 @@ mod tests {
266266

267267
let expected = r#"
268268
(module
269-
(type (;0;) (func))
269+
(type (;0;) (func (result externref externref externref)))
270270
(type (;1;) (func (param externref externref externref externref externref)))
271271
(type (;2;) (func (param externref externref externref)))
272272
(type (;3;) (func (result externref externref externref)))
273273
(import "" "gc" (func (;0;) (type 0)))
274274
(import "" "take_refs" (func (;1;) (type 2)))
275275
(import "" "make_refs" (func (;2;) (type 3)))
276276
(func (;3;) (type 1) (param externref externref externref externref externref)
277-
(local externref i32)
278-
i32.const 100
279-
local.set 6
277+
(local externref)
280278
loop ;; label = @1
281279
call 0
280+
drop
281+
drop
282+
drop
282283
i32.const 0
283284
table.get 0
284285
drop
@@ -319,11 +320,7 @@ mod tests {
319320
call 1
320321
call 2
321322
call 1
322-
local.get 6
323-
i32.const -1
324-
i32.add
325-
local.tee 6
326-
br_if 0 (;@1;)
323+
br 0 (;@1;)
327324
end)
328325
(table (;0;) 20 externref)
329326
(export "run" (func 3)))

0 commit comments

Comments
 (0)