;;; TOOL: run-interp-spec
;;; STDIN_FILE: third_party/testsuite/imports.wast
(;; STDOUT ;;;
called host spectest.print_i32(i32:13) =>
called host spectest.print_i32_f32(i32:14, f32:42.000000) =>
called host spectest.print_i32(i32:13) =>
called host spectest.print_i32(i32:13) =>
called host spectest.print_f32(f32:13.000000) =>
called host spectest.print_i32(i32:13) =>
called host spectest.print_f64_f64(f64:25.000000, f64:53.000000) =>
called host spectest.print_f64(f64:24.000000) =>
called host spectest.print_f64(f64:24.000000) =>
called host spectest.print_f64(f64:24.000000) =>
out/test/spec/imports.wast:91: assert_invalid passed:
  000001e: error: invalid import signature index
out/test/spec/imports.wast:107: assert_unlinkable passed:
  error: unknown module field "unknown"
  0000020: error: OnImportFunc callback failed
out/test/spec/imports.wast:111: assert_unlinkable passed:
  error: unknown module field "unknown"
  0000024: error: OnImportFunc callback failed
out/test/spec/imports.wast:116: assert_unlinkable passed:
  error: import signature mismatch
  000001e: error: OnImportFunc callback failed
out/test/spec/imports.wast:120: assert_unlinkable passed:
  error: import signature mismatch
  000001e: error: OnImportFunc callback failed
out/test/spec/imports.wast:124: assert_unlinkable passed:
  error: import signature mismatch
  000001f: error: OnImportFunc callback failed
out/test/spec/imports.wast:128: assert_unlinkable passed:
  error: import signature mismatch
  0000021: error: OnImportFunc callback failed
out/test/spec/imports.wast:132: assert_unlinkable passed:
  error: import signature mismatch
  0000022: error: OnImportFunc callback failed
out/test/spec/imports.wast:136: assert_unlinkable passed:
  error: import signature mismatch
  0000022: error: OnImportFunc callback failed
out/test/spec/imports.wast:140: assert_unlinkable passed:
  error: import signature mismatch
  0000022: error: OnImportFunc callback failed
out/test/spec/imports.wast:144: assert_unlinkable passed:
  error: import signature mismatch
  0000023: error: OnImportFunc callback failed
out/test/spec/imports.wast:148: assert_unlinkable passed:
  error: import signature mismatch
  0000022: error: OnImportFunc callback failed
out/test/spec/imports.wast:152: assert_unlinkable passed:
  error: import signature mismatch
  0000023: error: OnImportFunc callback failed
out/test/spec/imports.wast:156: assert_unlinkable passed:
  error: import signature mismatch
  0000023: error: OnImportFunc callback failed
out/test/spec/imports.wast:160: assert_unlinkable passed:
  error: import signature mismatch
  0000023: error: OnImportFunc callback failed
out/test/spec/imports.wast:164: assert_unlinkable passed:
  error: import signature mismatch
  0000024: error: OnImportFunc callback failed
out/test/spec/imports.wast:168: assert_unlinkable passed:
  error: import signature mismatch
  0000026: error: OnImportFunc callback failed
out/test/spec/imports.wast:172: assert_unlinkable passed:
  error: import signature mismatch
  0000027: error: OnImportFunc callback failed
out/test/spec/imports.wast:176: assert_unlinkable passed:
  error: import signature mismatch
  0000027: error: OnImportFunc callback failed
out/test/spec/imports.wast:181: assert_unlinkable passed:
  error: expected import "test.global-i32" to have kind func, not global
  0000024: error: OnImportFunc callback failed
out/test/spec/imports.wast:185: assert_unlinkable passed:
  error: expected import "test.table-10-inf" to have kind func, not table
  0000025: error: OnImportFunc callback failed
out/test/spec/imports.wast:189: assert_unlinkable passed:
  error: expected import "test.memory-2-inf" to have kind func, not memory
  0000025: error: OnImportFunc callback failed
out/test/spec/imports.wast:193: assert_unlinkable passed:
  error: expected import "spectest.global_i32" to have kind func, not global
  0000027: error: OnImportFunc callback failed
out/test/spec/imports.wast:197: assert_unlinkable passed:
  error: expected import "spectest.table" to have kind func, not table
  0000022: error: OnImportFunc callback failed
out/test/spec/imports.wast:201: assert_unlinkable passed:
  error: expected import "spectest.memory" to have kind func, not memory
  0000023: error: OnImportFunc callback failed
out/test/spec/imports.wast:235: assert_unlinkable passed:
  error: unknown module field "unknown"
  000001b: error: OnImportGlobal callback failed
out/test/spec/imports.wast:239: assert_unlinkable passed:
  error: unknown module field "unknown"
  000001f: error: OnImportGlobal callback failed
out/test/spec/imports.wast:244: assert_unlinkable passed:
  error: expected import "test.func" to have kind global, not func
  0000018: error: OnImportGlobal callback failed
out/test/spec/imports.wast:248: assert_unlinkable passed:
  error: expected import "test.table-10-inf" to have kind global, not table
  0000020: error: OnImportGlobal callback failed
out/test/spec/imports.wast:252: assert_unlinkable passed:
  error: expected import "test.memory-2-inf" to have kind global, not memory
  0000020: error: OnImportGlobal callback failed
out/test/spec/imports.wast:256: assert_unlinkable passed:
  error: expected import "spectest.print_i32" to have kind global, not func
  0000021: error: OnImportGlobal callback failed
out/test/spec/imports.wast:260: assert_unlinkable passed:
  error: expected import "spectest.table" to have kind global, not table
  000001d: error: OnImportGlobal callback failed
out/test/spec/imports.wast:264: assert_unlinkable passed:
  error: expected import "spectest.memory" to have kind global, not memory
  000001e: error: OnImportGlobal callback failed
out/test/spec/imports.wast:310: assert_invalid passed:
  error: unknown import module ""
  0000011: error: OnImportTable callback failed
out/test/spec/imports.wast:314: assert_invalid passed:
  error: unknown import module ""
  0000011: error: OnImportTable callback failed
out/test/spec/imports.wast:318: assert_invalid passed:
  000000b: error: table count (2) must be 0 or 1
out/test/spec/imports.wast:335: assert_unlinkable passed:
  error: unknown module field "unknown"
  000001c: error: OnImportTable callback failed
out/test/spec/imports.wast:339: assert_unlinkable passed:
  error: unknown module field "unknown"
  0000020: error: OnImportTable callback failed
out/test/spec/imports.wast:344: assert_unlinkable passed:
  error: actual size (10) smaller than declared (12)
  0000021: error: OnImportTable callback failed
out/test/spec/imports.wast:348: assert_unlinkable passed:
  error: max size (unspecified) larger than declared (20)
  0000022: error: OnImportTable callback failed
out/test/spec/imports.wast:352: assert_unlinkable passed:
  error: actual size (10) smaller than declared (12)
  000001e: error: OnImportTable callback failed
out/test/spec/imports.wast:356: assert_unlinkable passed:
  error: max size (20) larger than declared (15)
  000001f: error: OnImportTable callback failed
out/test/spec/imports.wast:361: assert_unlinkable passed:
  error: expected import "test.func" to have kind table, not func
  0000019: error: OnImportTable callback failed
out/test/spec/imports.wast:365: assert_unlinkable passed:
  error: expected import "test.global-i32" to have kind table, not global
  000001f: error: OnImportTable callback failed
out/test/spec/imports.wast:369: assert_unlinkable passed:
  error: expected import "test.memory-2-inf" to have kind table, not memory
  0000021: error: OnImportTable callback failed
out/test/spec/imports.wast:373: assert_unlinkable passed:
  error: expected import "spectest.print_i32" to have kind table, not func
  0000022: error: OnImportTable callback failed
out/test/spec/imports.wast:405: assert_invalid passed:
  error: unknown import module ""
  0000010: error: OnImportMemory callback failed
out/test/spec/imports.wast:409: assert_invalid passed:
  error: unknown import module ""
  0000010: error: OnImportMemory callback failed
out/test/spec/imports.wast:413: assert_invalid passed:
  000000b: error: memory count must be 0 or 1
out/test/spec/imports.wast:428: assert_unlinkable passed:
  error: unknown module field "unknown"
  000001b: error: OnImportMemory callback failed
out/test/spec/imports.wast:432: assert_unlinkable passed:
  error: unknown module field "unknown"
  000001f: error: OnImportMemory callback failed
out/test/spec/imports.wast:437: assert_unlinkable passed:
  error: actual size (2) smaller than declared (3)
  0000020: error: OnImportMemory callback failed
out/test/spec/imports.wast:441: assert_unlinkable passed:
  error: max size (unspecified) larger than declared (3)
  0000021: error: OnImportMemory callback failed
out/test/spec/imports.wast:445: assert_unlinkable passed:
  error: actual size (1) smaller than declared (2)
  000001e: error: OnImportMemory callback failed
out/test/spec/imports.wast:449: assert_unlinkable passed:
  error: max size (2) larger than declared (1)
  000001f: error: OnImportMemory callback failed
out/test/spec/imports.wast:454: assert_unlinkable passed:
  error: expected import "test.func-i32" to have kind memory, not func
  000001c: error: OnImportMemory callback failed
out/test/spec/imports.wast:458: assert_unlinkable passed:
  error: expected import "test.global-i32" to have kind memory, not global
  000001e: error: OnImportMemory callback failed
out/test/spec/imports.wast:462: assert_unlinkable passed:
  error: expected import "test.table-10-inf" to have kind memory, not table
  0000020: error: OnImportMemory callback failed
out/test/spec/imports.wast:466: assert_unlinkable passed:
  error: expected import "spectest.print_i32" to have kind memory, not func
  0000021: error: OnImportMemory callback failed
out/test/spec/imports.wast:470: assert_unlinkable passed:
  error: expected import "spectest.global_i32" to have kind memory, not global
  0000022: error: OnImportMemory callback failed
out/test/spec/imports.wast:474: assert_unlinkable passed:
  error: expected import "spectest.table" to have kind memory, not table
  000001d: error: OnImportMemory callback failed
out/test/spec/imports.wast:479: assert_unlinkable passed:
  error: actual size (1) smaller than declared (2)
  000001e: error: OnImportMemory callback failed
out/test/spec/imports.wast:483: assert_unlinkable passed:
  error: max size (2) larger than declared (1)
  000001f: error: OnImportMemory callback failed
out/test/spec/imports.wast:501: assert_malformed passed:
  out/test/spec/imports/imports.100.wat:1:9: error: imports must occur before all non-import definitions
  (func) (import "" "" (func))
          ^^^^^^
out/test/spec/imports.wast:505: assert_malformed passed:
  out/test/spec/imports/imports.101.wat:1:9: error: imports must occur before all non-import definitions
  (func) (import "" "" (global i64))
          ^^^^^^
out/test/spec/imports.wast:509: assert_malformed passed:
  out/test/spec/imports/imports.102.wat:1:9: error: imports must occur before all non-import definitions
  (func) (import "" "" (table 0 funcref))
          ^^^^^^
out/test/spec/imports.wast:513: assert_malformed passed:
  out/test/spec/imports/imports.103.wat:1:9: error: imports must occur before all non-import definitions
  (func) (import "" "" (memory 0))
          ^^^^^^
out/test/spec/imports.wast:518: assert_malformed passed:
  out/test/spec/imports/imports.104.wat:1:29: error: imports must occur before all non-import definitions
  (global i64 (i64.const 0)) (import "" "" (func))
                              ^^^^^^
out/test/spec/imports.wast:522: assert_malformed passed:
  out/test/spec/imports/imports.105.wat:1:29: error: imports must occur before all non-import definitions
  (global i64 (i64.const 0)) (import "" "" (global f32))
                              ^^^^^^
out/test/spec/imports.wast:526: assert_malformed passed:
  out/test/spec/imports/imports.106.wat:1:29: error: imports must occur before all non-import definitions
  (global i64 (i64.const 0)) (import "" "" (table 0 funcref))
                              ^^^^^^
out/test/spec/imports.wast:530: assert_malformed passed:
  out/test/spec/imports/imports.107.wat:1:29: error: imports must occur before all non-import definitions
  (global i64 (i64.const 0)) (import "" "" (memory 0))
                              ^^^^^^
out/test/spec/imports.wast:535: assert_malformed passed:
  out/test/spec/imports/imports.108.wat:1:20: error: imports must occur before all non-import definitions
  (table 0 funcref) (import "" "" (func))
                     ^^^^^^
out/test/spec/imports.wast:539: assert_malformed passed:
  out/test/spec/imports/imports.109.wat:1:20: error: imports must occur before all non-import definitions
  (table 0 funcref) (import "" "" (global i32))
                     ^^^^^^
out/test/spec/imports.wast:543: assert_malformed passed:
  out/test/spec/imports/imports.110.wat:1:20: error: imports must occur before all non-import definitions
  (table 0 funcref) (import "" "" (table 0 funcref))
                     ^^^^^^
out/test/spec/imports.wast:547: assert_malformed passed:
  out/test/spec/imports/imports.111.wat:1:20: error: imports must occur before all non-import definitions
  (table 0 funcref) (import "" "" (memory 0))
                     ^^^^^^
out/test/spec/imports.wast:552: assert_malformed passed:
  out/test/spec/imports/imports.112.wat:1:13: error: imports must occur before all non-import definitions
  (memory 0) (import "" "" (func))
              ^^^^^^
out/test/spec/imports.wast:556: assert_malformed passed:
  out/test/spec/imports/imports.113.wat:1:13: error: imports must occur before all non-import definitions
  (memory 0) (import "" "" (global i32))
              ^^^^^^
out/test/spec/imports.wast:560: assert_malformed passed:
  out/test/spec/imports/imports.114.wat:1:13: error: imports must occur before all non-import definitions
  (memory 0) (import "" "" (table 1 3 funcref))
              ^^^^^^
out/test/spec/imports.wast:564: assert_malformed passed:
  out/test/spec/imports/imports.115.wat:1:13: error: imports must occur before all non-import definitions
  (memory 0) (import "" "" (memory 1 2))
              ^^^^^^
out/test/spec/imports.wast:572: assert_unlinkable passed:
  error: unknown import module "not wasm"
  000004d: error: OnImportFunc callback failed
109/109 tests passed.
;;; STDOUT ;;)
