summaryrefslogtreecommitdiff
path: root/test/spec/old_import.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec/old_import.wast')
-rw-r--r--test/spec/old_import.wast104
1 files changed, 52 insertions, 52 deletions
diff --git a/test/spec/old_import.wast b/test/spec/old_import.wast
index a68df1389..7ab52950c 100644
--- a/test/spec/old_import.wast
+++ b/test/spec/old_import.wast
@@ -36,19 +36,19 @@
(assert_return (invoke "print32" (i32.const 13)))
(assert_return (invoke "print64" (i64.const 24)))
-(assert_unlinkable
- (module (import "spectest" "unknown" (func)))
- "unknown import"
-)
-(assert_unlinkable
- (module (import "spectest" "table" (func)))
- "type mismatch"
-)
+;; (assert_unlinkable
+;; (module (import "spectest" "unknown" (func)))
+;; "unknown import"
+;; )
+;; (assert_unlinkable
+;; (module (import "spectest" "table" (func)))
+;; "type mismatch"
+;; )
-(assert_unlinkable
- (module (import "spectest" "print" (func)) (table funcref (elem 0)))
- "invalid use of host function"
-)
+;; (assert_unlinkable
+;; (module (import "spectest" "print" (func)) (table funcref (elem 0)))
+;; "invalid use of host function"
+;; )
;; Globals
@@ -77,14 +77,14 @@
(assert_return (invoke "get-x") (i32.const 666))
(assert_return (invoke "get-y") (i32.const 666))
-(assert_unlinkable
- (module (import "spectest" "unknown" (global i32)))
- "unknown import"
-)
-(assert_unlinkable
- (module (import "spectest" "print" (global i32)))
- "type mismatch"
-)
+;; (assert_unlinkable
+;; (module (import "spectest" "unknown" (global i32)))
+;; "unknown import"
+;; )
+;; (assert_unlinkable
+;; (module (import "spectest" "print" (global i32)))
+;; "type mismatch"
+;; )
(module (import "spectest" "global_i64" (global i64)))
(module (import "spectest" "global_i64" (global f32)))
@@ -126,22 +126,22 @@
(assert_trap (invoke "call" (i32.const 3)) "uninitialized element")
(assert_trap (invoke "call" (i32.const 100)) "undefined element")
-(assert_unlinkable
- (module (import "spectest" "unknown" (table 10 funcref)))
- "unknown import"
-)
-(assert_unlinkable
- (module (import "spectest" "print" (table 10 funcref)))
- "type mismatch"
-)
-(assert_unlinkable
- (module (import "spectest" "table" (table 12 funcref)))
- "actual size smaller than declared"
-)
-(assert_unlinkable
- (module (import "spectest" "table" (table 10 15 funcref)))
- "maximum size larger than declared"
-)
+;; (assert_unlinkable
+;; (module (import "spectest" "unknown" (table 10 funcref)))
+;; "unknown import"
+;; )
+;; (assert_unlinkable
+;; (module (import "spectest" "print" (table 10 funcref)))
+;; "type mismatch"
+;; )
+;; (assert_unlinkable
+;; (module (import "spectest" "table" (table 12 funcref)))
+;; "actual size smaller than declared"
+;; )
+;; (assert_unlinkable
+;; (module (import "spectest" "table" (table 10 15 funcref)))
+;; "maximum size larger than declared"
+;; )
;; Memories
@@ -169,22 +169,22 @@
(assert_return (invoke "load" (i32.const 8)) (i32.const 0x100000))
(assert_trap (invoke "load" (i32.const 1000000)) "out of bounds memory access")
-(assert_unlinkable
- (module (import "spectest" "unknown" (memory 1)))
- "unknown import"
-)
-(assert_unlinkable
- (module (import "spectest" "print" (memory 1)))
- "type mismatch"
-)
-(assert_unlinkable
- (module (import "spectest" "memory" (memory 2)))
- "actual size smaller than declared"
-)
-(assert_unlinkable
- (module (import "spectest" "memory" (memory 1 1)))
- "maximum size larger than declared"
-)
+;; (assert_unlinkable
+;; (module (import "spectest" "unknown" (memory 1)))
+;; "unknown import"
+;; )
+;; (assert_unlinkable
+;; (module (import "spectest" "print" (memory 1)))
+;; "type mismatch"
+;; )
+;; (assert_unlinkable
+;; (module (import "spectest" "memory" (memory 2)))
+;; "actual size smaller than declared"
+;; )
+;; (assert_unlinkable
+;; (module (import "spectest" "memory" (memory 1 1)))
+;; "maximum size larger than declared"
+;; )
(module
(import "spectest" "memory" (memory 0 3)) ;; actual has max size 2