summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/spec/binary.wast191
1 files changed, 0 insertions, 191 deletions
diff --git a/test/spec/binary.wast b/test/spec/binary.wast
index e748bbe8c..e7bca9b11 100644
--- a/test/spec/binary.wast
+++ b/test/spec/binary.wast
@@ -138,197 +138,6 @@
"zero flag expected"
)
-;; memory.grow reserved byte equal to zero.
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\09\01" ;; Code section
-
- ;; function 0
- "\07\00"
- "\41\00" ;; i32.const 0
- "\40" ;; memory.grow
- "\01" ;; memory.grow reserved byte is not equal to zero!
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-;; memory.grow reserved byte should not be a "long" LEB128 zero.
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\0a\01" ;; Code section
-
- ;; function 0
- "\08\00"
- "\41\00" ;; i32.const 0
- "\40" ;; memory.grow
- "\80\00" ;; memory.grow reserved byte
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-;; Same as above for 3, 4, and 5-byte zero encodings.
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\0b\01" ;; Code section
-
- ;; function 0
- "\09\00"
- "\41\00" ;; i32.const 0
- "\40" ;; memory.grow
- "\80\80\00" ;; memory.grow reserved byte
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\0c\01" ;; Code section
-
- ;; function 0
- "\0a\00"
- "\41\00" ;; i32.const 0
- "\40" ;; memory.grow
- "\80\80\80\00" ;; memory.grow reserved byte
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\0d\01" ;; Code section
-
- ;; function 0
- "\0b\00"
- "\41\00" ;; i32.const 0
- "\40" ;; memory.grow
- "\80\80\80\80\00" ;; memory.grow reserved byte
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-;; memory.size reserved byte equal to zero.
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\07\01" ;; Code section
-
- ;; function 0
- "\05\00"
- "\3f" ;; memory.size
- "\01" ;; memory.size reserved byte is not equal to zero!
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-;; memory.size reserved byte should not be a "long" LEB128 zero.
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\08\01" ;; Code section
-
- ;; function 0
- "\06\00"
- "\3f" ;; memory.size
- "\80\00" ;; memory.size reserved byte
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-;; Same as above for 3, 4, and 5-byte zero encodings.
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\09\01" ;; Code section
-
- ;; function 0
- "\07\00"
- "\3f" ;; memory.size
- "\80\80\00" ;; memory.size reserved byte
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\0a\01" ;; Code section
-
- ;; function 0
- "\08\00"
- "\3f" ;; memory.size
- "\80\80\80\00" ;; memory.size reserved byte
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
-(assert_malformed
- (module binary
- "\00asm" "\01\00\00\00"
- "\01\04\01\60\00\00" ;; Type section
- "\03\02\01\00" ;; Function section
- "\05\03\01\00\00" ;; Memory section
- "\0a\0b\01" ;; Code section
-
- ;; function 0
- "\09\00"
- "\3f" ;; memory.size
- "\80\80\80\80\00" ;; memory.size reserved byte
- "\1a" ;; drop
- "\0b" ;; end
- )
- "zero flag expected"
-)
-
;; No more than 2^32 locals.
(assert_malformed
(module binary