Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Vergnaud <[email protected]>
  • Loading branch information
ericvergnaud committed Jan 25, 2024
1 parent d13f55e commit 53f8af6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/example/c-api-kitchen-sink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,25 +1122,23 @@ void test_core() {
0,
BinaryenGlobalGet(module, "i32Struct-global", i32Struct),
makeInt32(module, 0)),
BinaryenArrayNew(module,
BinaryenTypeGetHeapType(i8Array),
makeInt32(module, 3),
0),
BinaryenArrayNew(
module, BinaryenTypeGetHeapType(i8Array), makeInt32(module, 3), 0),
BinaryenArrayNew(module,
BinaryenTypeGetHeapType(i8Array),
makeInt32(module, 3),
makeInt32(module, 42)),
BinaryenArrayNewData(module,
BinaryenTypeGetHeapType(i8Array),
"some-data-segment"
makeInt32(module, 0),
makeInt32(module, 16)),
BinaryenTypeGetHeapType(i8Array),
"0",
makeInt32(module, 0),
makeInt32(module, 2)),
BinaryenArrayNewFixed(module,
BinaryenTypeGetHeapType(i8Array),
(BinaryenExpressionRef[]){makeInt32(module, 1),
BinaryenTypeGetHeapType(i8Array),
(BinaryenExpressionRef[]){makeInt32(module, 1),
makeInt32(module, 2),
makeInt32(module, 3)},
3),
3),
BinaryenArrayGet(module,
BinaryenGlobalGet(module, "i8Array-global", i8Array),
makeInt32(module, 0),
Expand Down
6 changes: 6 additions & 0 deletions test/example/c-api-kitchen-sink.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2297,6 +2297,12 @@ BinaryenFeatureAll: 131071
(i32.const 3)
)
)
(drop
(array.new_data $0 $0
(i32.const 0)
(i32.const 2)
)
)
(drop
(array.new_fixed $0 3
(i32.const 1)
Expand Down

0 comments on commit 53f8af6

Please sign in to comment.