| ;;; TOOL: wat2wasm |
| (module |
| (import "foo" "i32_global" (global i32)) |
| (import "foo" "i64_global" (global i64)) |
| (import "foo" "f32_global" (global f32)) |
| (import "foo" "f64_global" (global f64)) |
| (table 10 funcref) |
| (elem declare func $foo) |
| |
| (global i32 (i32.const 1)) |
| (global i64 (i64.const 2)) |
| (global f32 (f32.const 3)) |
| (global f64 (f64.const 4)) |
| |
| (global i32 (get_global 0)) |
| (global i64 (get_global 1)) |
| (global f32 (get_global 2)) |
| (global f64 (get_global 3)) |
| |
| (func $foo) |
| (global externref (ref.null extern)) |
| (global funcref (ref.func $foo))) |