Skip to content

Commit

Permalink
Define global_i64 for wasm2c global tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ngzhian committed Mar 4, 2021
1 parent 6203fa4 commit a15ddaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/spec-wasm2c-prefix.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ static void spectest_print_f64_f64(double d1, double d2) {
static wasm_rt_table_t spectest_table;
static wasm_rt_memory_t spectest_memory;
static uint32_t spectest_global_i32 = 666;
static uint64_t spectest_global_i64 = 666l;

void (*Z_spectestZ_printZ_vv)(void) = &spectest_print;
void (*Z_spectestZ_print_i32Z_vi)(uint32_t) = &spectest_print_i32;
Expand All @@ -214,6 +215,7 @@ void (*Z_spectestZ_print_f64_f64Z_vdd)(double,
wasm_rt_table_t* Z_spectestZ_table = &spectest_table;
wasm_rt_memory_t* Z_spectestZ_memory = &spectest_memory;
uint32_t* Z_spectestZ_global_i32Z_i = &spectest_global_i32;
uint64_t* Z_spectestZ_global_i64Z_j = &spectest_global_i64;

static void init_spectest_module(void) {
wasm_rt_allocate_memory(&spectest_memory, 1, 2);
Expand Down
2 changes: 1 addition & 1 deletion test/wasm2c/spec/global.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-spec-wasm2c
;;; STDIN_FILE: third_party/testsuite/global.wast
(;; STDOUT ;;;
46/46 tests passed.
48/48 tests passed.
;;; STDOUT ;;)

0 comments on commit a15ddaf

Please sign in to comment.