Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
80888502
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
80888502
编写于
10月 29, 2017
作者:
A
Andrew Scheidecker
提交者:
Matt Witherspoon
1月 16, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update tests from spec repo
上级
199cf420
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
266 addition
and
51 deletion
+266
-51
Test/spec/utf8-invalid-encoding.wast
Test/spec/utf8-invalid-encoding.wast
+176
-0
libraries/wasm-jit/Test/spec/CMakeLists.txt
libraries/wasm-jit/Test/spec/CMakeLists.txt
+1
-0
libraries/wasm-jit/Test/spec/imports.wast
libraries/wasm-jit/Test/spec/imports.wast
+48
-48
libraries/wasm-jit/Test/spec/linking.wast
libraries/wasm-jit/Test/spec/linking.wast
+10
-2
libraries/wasm-jit/Test/spec/memory.wast
libraries/wasm-jit/Test/spec/memory.wast
+1
-1
libraries/wasm-jit/Test/spec/unreached-invalid.wast
libraries/wasm-jit/Test/spec/unreached-invalid.wast
+30
-0
未找到文件。
Test/spec/utf8-invalid-encoding.wast
0 → 100644
浏览文件 @
80888502
(assert_malformed (module quote "(func (export \"\\00\\00\\fe\\ff\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\8f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\9f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\a0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c0\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c1\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c1\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c2\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c2\\2e\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c2\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c2\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c2\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c2\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\c2\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\df\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\df\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\df\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\df\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\00\\a0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\7f\\a0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\80\\a0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\9f\\a0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\9f\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\a0\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\a0\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\a0\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\a0\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\c0\\a0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e0\\fd\\a0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\00\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\2e\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\7f\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\80\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\80\\2e\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\80\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\80\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\80\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\e1\\fd\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ec\\00\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ec\\7f\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ec\\80\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ec\\80\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ec\\80\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ec\\80\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ec\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ec\\fd\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\00\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\7f\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\80\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\80\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\80\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\80\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\a0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\a0\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\bf\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\bf\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ed\\fd\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ee\\00\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ee\\7f\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ee\\80\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ee\\80\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ee\\80\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ee\\80\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ee\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ee\\fd\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ef\\00\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ef\\7f\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ef\\80\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ef\\80\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ef\\80\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ef\\80\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ef\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ef\\fd\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\00\\90\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\7f\\90\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\80\\90\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\8f\\90\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\8f\\bf\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\90\\00\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\90\\7f\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\90\\90\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\90\\90\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\90\\90\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\90\\90\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\90\\c0\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\90\\fd\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\c0\\90\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f0\\fd\\90\\90\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\00\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\7f\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\00\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\7f\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\80\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\80\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\80\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\80\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\80\\fd\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\c0\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f1\\fd\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\00\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\7f\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\80\\00\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\80\\7f\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\80\\80\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\80\\80\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\80\\80\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\80\\80\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\80\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\80\\fd\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\c0\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f3\\fd\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\00\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\7f\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\80\\00\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\80\\7f\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\80\\80\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\80\\80\\7f\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\80\\80\\c0\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\80\\80\\fd\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\80\\c0\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\80\\fd\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\90\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\bf\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\c0\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f4\\fd\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f5\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f7\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f7\\bf\\bf\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\80\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\80\\80\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\80\\80\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\80\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\f8\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fb\\bf\\bf\\bf\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\80\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\80\\80\\80\\23\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\80\\80\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\80\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\\80\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fc\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fd\\bf\\bf\\bf\\bf\\bf\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fe\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\fe\\ff\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ff\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ff\\fe\\00\\00\"))") "invalid UTF-8 encoding")
(assert_malformed (module quote "(func (export \"\\ff\\fe\"))") "invalid UTF-8 encoding")
libraries/wasm-jit/Test/spec/CMakeLists.txt
浏览文件 @
80888502
...
@@ -71,6 +71,7 @@ add_test(typecheck ${TEST_BIN} ${CMAKE_CURRENT_LIST_DIR}/typecheck.wast)
...
@@ -71,6 +71,7 @@ add_test(typecheck ${TEST_BIN} ${CMAKE_CURRENT_LIST_DIR}/typecheck.wast)
add_test
(
unreachable
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/unreachable.wast
)
add_test
(
unreachable
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/unreachable.wast
)
add_test
(
unreached-invalid
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/unreached-invalid.wast
)
add_test
(
unreached-invalid
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/unreached-invalid.wast
)
add_test
(
unwind
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/unwind.wast
)
add_test
(
unwind
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/unwind.wast
)
add_test
(
utf8-invalid-encoding
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/utf8-invalid-encoding.wast
)
add_test
(
utf8-custom-section-id
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/utf8-custom-section-id.wast
)
add_test
(
utf8-custom-section-id
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/utf8-custom-section-id.wast
)
add_test
(
utf8-import-field
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/utf8-import-field.wast
)
add_test
(
utf8-import-field
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/utf8-import-field.wast
)
add_test
(
utf8-import-module
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/utf8-import-module.wast
)
add_test
(
utf8-import-module
${
TEST_BIN
}
${
CMAKE_CURRENT_LIST_DIR
}
/utf8-import-module.wast
)
libraries/wasm-jit/Test/spec/imports.wast
浏览文件 @
80888502
...
@@ -106,92 +106,92 @@
...
@@ -106,92 +106,92 @@
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func" (func (param i32))))
(module (import "test" "func" (func (param i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func" (func (result i32))))
(module (import "test" "func" (func (result i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func" (func (param i32) (result i32))))
(module (import "test" "func" (func (param i32) (result i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32" (func)))
(module (import "test" "func-i32" (func)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32" (func (result i32))))
(module (import "test" "func-i32" (func (result i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32" (func (param f32))))
(module (import "test" "func-i32" (func (param f32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32" (func (param i64))))
(module (import "test" "func-i32" (func (param i64))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32" (func (param i32) (result i32))))
(module (import "test" "func-i32" (func (param i32) (result i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func->i32" (func)))
(module (import "test" "func->i32" (func)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func->i32" (func (param i32))))
(module (import "test" "func->i32" (func (param i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func->i32" (func (result f32))))
(module (import "test" "func->i32" (func (result f32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func->i32" (func (result i64))))
(module (import "test" "func->i32" (func (result i64))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func->i32" (func (param i32) (result i32))))
(module (import "test" "func->i32" (func (param i32) (result i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32->i32" (func)))
(module (import "test" "func-i32->i32" (func)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32->i32" (func (param i32))))
(module (import "test" "func-i32->i32" (func (param i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32->i32" (func (result i32))))
(module (import "test" "func-i32->i32" (func (result i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "global-i32" (func (result i32))))
(module (import "test" "global-i32" (func (result i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "table-10-inf" (func)))
(module (import "test" "table-10-inf" (func)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "memory-2-inf" (func)))
(module (import "test" "memory-2-inf" (func)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "global" (func)))
(module (import "spectest" "global" (func)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "table" (func)))
(module (import "spectest" "table" (func)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "memory" (func)))
(module (import "spectest" "memory" (func)))
"
type mismatch
"
"
incompatible import type
"
)
)
...
@@ -234,27 +234,27 @@
...
@@ -234,27 +234,27 @@
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func" (global i32)))
(module (import "test" "func" (global i32)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "table-10-inf" (global i32)))
(module (import "test" "table-10-inf" (global i32)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "memory-2-inf" (global i32)))
(module (import "test" "memory-2-inf" (global i32)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "print" (global i32)))
(module (import "spectest" "print" (global i32)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "table" (global i32)))
(module (import "spectest" "table" (global i32)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "memory" (global i32)))
(module (import "spectest" "memory" (global i32)))
"
type mismatch
"
"
incompatible import type
"
)
)
...
@@ -330,36 +330,36 @@
...
@@ -330,36 +330,36 @@
(assert_unlinkable
(assert_unlinkable
(module (import "test" "table-10-inf" (table 12 anyfunc)))
(module (import "test" "table-10-inf" (table 12 anyfunc)))
"
actual size smaller than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "table-10-inf" (table 10 20 anyfunc)))
(module (import "test" "table-10-inf" (table 10 20 anyfunc)))
"
maximum size larger than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "table" (table 12 anyfunc)))
(module (import "spectest" "table" (table 12 anyfunc)))
"
actual size smaller than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "table" (table 10 15 anyfunc)))
(module (import "spectest" "table" (table 10 15 anyfunc)))
"
maximum size larger than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func" (table 10 anyfunc)))
(module (import "test" "func" (table 10 anyfunc)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "global-i32" (table 10 anyfunc)))
(module (import "test" "global-i32" (table 10 anyfunc)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "memory-2-inf" (table 10 anyfunc)))
(module (import "test" "memory-2-inf" (table 10 anyfunc)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "print" (table 10 anyfunc)))
(module (import "spectest" "print" (table 10 anyfunc)))
"
type mismatch
"
"
incompatible import type
"
)
)
...
@@ -423,53 +423,53 @@
...
@@ -423,53 +423,53 @@
(assert_unlinkable
(assert_unlinkable
(module (import "test" "memory-2-inf" (memory 3)))
(module (import "test" "memory-2-inf" (memory 3)))
"
actual size smaller than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "memory-2-inf" (memory 2 3)))
(module (import "test" "memory-2-inf" (memory 2 3)))
"
maximum size larger than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "memory" (memory 2)))
(module (import "spectest" "memory" (memory 2)))
"
actual size smaller than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "memory" (memory 1 1)))
(module (import "spectest" "memory" (memory 1 1)))
"
maximum size larger than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "func-i32" (memory 1)))
(module (import "test" "func-i32" (memory 1)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "global-i32" (memory 1)))
(module (import "test" "global-i32" (memory 1)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "test" "table-10-inf" (memory 1)))
(module (import "test" "table-10-inf" (memory 1)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "print" (memory 1)))
(module (import "spectest" "print" (memory 1)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "global" (memory 1)))
(module (import "spectest" "global" (memory 1)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "table" (memory 1)))
(module (import "spectest" "table" (memory 1)))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "memory" (memory 2)))
(module (import "spectest" "memory" (memory 2)))
"
actual size smaller than declared
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "spectest" "memory" (memory 1 1)))
(module (import "spectest" "memory" (memory 1 1)))
"
maximum size larger than declared
"
"
incompatible import type
"
)
)
(module
(module
...
...
libraries/wasm-jit/Test/spec/linking.wast
浏览文件 @
80888502
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
(register "reexport_f")
(register "reexport_f")
(assert_unlinkable
(assert_unlinkable
(module (import "reexport_f" "print" (func (param i64))))
(module (import "reexport_f" "print" (func (param i64))))
"
type mismatch
"
"
incompatible import type
"
)
)
(assert_unlinkable
(assert_unlinkable
(module (import "reexport_f" "print" (func (param i32) (result i32))))
(module (import "reexport_f" "print" (func (param i32) (result i32))))
"
type mismatch
"
"
incompatible import type
"
)
)
...
@@ -162,6 +162,14 @@
...
@@ -162,6 +162,14 @@
(func $f)
(func $f)
)
)
(module $G1 (global (export "g") i32 (i32.const 5)))
(register "G1" $G1)
(module $G2
(global (import "G1" "g") i32)
(global (export "g") i32 (get_global 0))
)
(assert_return (get $G2 "g") (i32.const 5))
(assert_unlinkable
(assert_unlinkable
(module
(module
(table (import "Mt" "tab") 0 anyfunc)
(table (import "Mt" "tab") 0 anyfunc)
...
...
libraries/wasm-jit/Test/spec/memory.wast
浏览文件 @
80888502
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
(assert_invalid
(assert_invalid
(module (memory 1 0))
(module (memory 1 0))
"
memory
size minimum must not be greater than maximum"
"size minimum must not be greater than maximum"
)
)
(assert_invalid
(assert_invalid
(module (memory 65537))
(module (memory 65537))
...
...
libraries/wasm-jit/Test/spec/unreached-invalid.wast
浏览文件 @
80888502
...
@@ -195,6 +195,18 @@
...
@@ -195,6 +195,18 @@
))
))
"type mismatch"
"type mismatch"
)
)
(assert_invalid
(module (func $type-unary-num-vs-void-in-loop-after-unreachable
(unreachable) (loop (drop (i32.eqz (nop))))
))
"type mismatch"
)
(assert_invalid
(module (func $type-unary-num-vs-void-in-i32-loop-after-unreachable
(unreachable) (loop (result i32) (i32.eqz (nop)))
))
"type mismatch"
)
(assert_invalid
(assert_invalid
(module (func $type-unary-num-vs-num-after-unreachable
(module (func $type-unary-num-vs-num-after-unreachable
(unreachable) (drop (i32.eqz (f32.const 1)))
(unreachable) (drop (i32.eqz (f32.const 1)))
...
@@ -249,6 +261,24 @@
...
@@ -249,6 +261,24 @@
))
))
"type mismatch"
"type mismatch"
)
)
(assert_invalid
(module (func $type-unary-num-vs-void-in-if-after-unreachable
(unreachable) (if (i32.const 0) (then (drop (i32.eqz (nop)))))
))
"type mismatch"
)
(assert_invalid
(module (func $type-unary-num-vs-void-in-else-after-unreachable
(unreachable) (if (i32.const 0) (then (nop)) (else (drop (i32.eqz (nop)))))
))
"type mismatch"
)
(assert_invalid
(module (func $type-unary-num-vs-void-in-else-after-unreachable-if
(if (i32.const 0) (then (unreachable)) (else (drop (i32.eqz (nop)))))
))
"type mismatch"
)
(assert_invalid
(assert_invalid
(module (func $type-unary-num-vs-void-after-nested-unreachable
(module (func $type-unary-num-vs-void-after-nested-unreachable
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录