;;; 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 (global.get 0))
  (global i64 (global.get 1))
  (global f32 (global.get 2))
  (global f64 (global.get 3))

  (func $foo)
  (global externref (ref.null extern))
  (global funcref (ref.func $foo)))
