summaryrefslogtreecommitdiff
path: root/test/wasm2c/spec/exception-handling
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2c/spec/exception-handling')
-rw-r--r--test/wasm2c/spec/exception-handling/binary.txt6
-rw-r--r--test/wasm2c/spec/exception-handling/exports.txt13
-rw-r--r--test/wasm2c/spec/exception-handling/imports.txt24
-rw-r--r--test/wasm2c/spec/exception-handling/rethrow.txt6
-rw-r--r--test/wasm2c/spec/exception-handling/tag.txt6
-rw-r--r--test/wasm2c/spec/exception-handling/throw.txt6
-rw-r--r--test/wasm2c/spec/exception-handling/try_catch.txt6
-rw-r--r--test/wasm2c/spec/exception-handling/try_delegate.txt6
8 files changed, 73 insertions, 0 deletions
diff --git a/test/wasm2c/spec/exception-handling/binary.txt b/test/wasm2c/spec/exception-handling/binary.txt
new file mode 100644
index 00000000..59615955
--- /dev/null
+++ b/test/wasm2c/spec/exception-handling/binary.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-spec-wasm2c
+;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/binary.wast
+;;; ARGS*: --enable-exceptions
+(;; STDOUT ;;;
+0/0 tests passed.
+;;; STDOUT ;;)
diff --git a/test/wasm2c/spec/exception-handling/exports.txt b/test/wasm2c/spec/exception-handling/exports.txt
new file mode 100644
index 00000000..4b1fc5a4
--- /dev/null
+++ b/test/wasm2c/spec/exception-handling/exports.txt
@@ -0,0 +1,13 @@
+;;; TOOL: run-spec-wasm2c
+(module)
+(;; STDOUT ;;;
+0/0 tests passed.
+;;; STDOUT ;;)
+
+;; To be replaced with below after reference types land
+;; ;;; TOOL: run-spec-wasm2c
+;; ;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/exports.wast
+;; ;;; ARGS*: --enable-exceptions
+;; (;; STDOUT ;;;
+;; 9/9 tests passed.
+;; ;;; STDOUT ;;)
diff --git a/test/wasm2c/spec/exception-handling/imports.txt b/test/wasm2c/spec/exception-handling/imports.txt
new file mode 100644
index 00000000..797faf50
--- /dev/null
+++ b/test/wasm2c/spec/exception-handling/imports.txt
@@ -0,0 +1,24 @@
+;;; TOOL: run-spec-wasm2c
+(module)
+(;; STDOUT ;;;
+0/0 tests passed.
+;;; STDOUT ;;)
+
+;; To be replaced with below after reference types land
+;; ;;; TOOL: run-spec-wasm2c
+;; ;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/imports.wast
+;; ;;; ARGS*: --enable-exceptions
+;; (;; STDOUT ;;;
+;; spectest.print_i32(13)
+;; spectest.print_i32_f32(14 42)
+;; spectest.print_i32(13)
+;; spectest.print_i32(13)
+;; spectest.print_f32(13)
+;; spectest.print_i32(13)
+;; spectest.print_f64_f64(25 53)
+;; spectest.print_f64(24)
+;; spectest.print_f64(24)
+;; spectest.print_f64(24)
+;; spectest.print_i32(13)
+;; 34/34 tests passed.
+;; ;;; STDOUT ;;)
diff --git a/test/wasm2c/spec/exception-handling/rethrow.txt b/test/wasm2c/spec/exception-handling/rethrow.txt
new file mode 100644
index 00000000..7f1903cf
--- /dev/null
+++ b/test/wasm2c/spec/exception-handling/rethrow.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-spec-wasm2c
+;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/rethrow.wast
+;;; ARGS*: --enable-exceptions
+(;; STDOUT ;;;
+12/12 tests passed.
+;;; STDOUT ;;)
diff --git a/test/wasm2c/spec/exception-handling/tag.txt b/test/wasm2c/spec/exception-handling/tag.txt
new file mode 100644
index 00000000..8824d43c
--- /dev/null
+++ b/test/wasm2c/spec/exception-handling/tag.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-spec-wasm2c
+;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/tag.wast
+;;; ARGS*: --enable-exceptions
+(;; STDOUT ;;;
+0/0 tests passed.
+;;; STDOUT ;;)
diff --git a/test/wasm2c/spec/exception-handling/throw.txt b/test/wasm2c/spec/exception-handling/throw.txt
new file mode 100644
index 00000000..fd751380
--- /dev/null
+++ b/test/wasm2c/spec/exception-handling/throw.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-spec-wasm2c
+;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/throw.wast
+;;; ARGS*: --enable-exceptions
+(;; STDOUT ;;;
+7/7 tests passed.
+;;; STDOUT ;;)
diff --git a/test/wasm2c/spec/exception-handling/try_catch.txt b/test/wasm2c/spec/exception-handling/try_catch.txt
new file mode 100644
index 00000000..049cf665
--- /dev/null
+++ b/test/wasm2c/spec/exception-handling/try_catch.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-spec-wasm2c
+;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/try_catch.wast
+;;; ARGS*: --enable-exceptions
+(;; STDOUT ;;;
+27/27 tests passed.
+;;; STDOUT ;;)
diff --git a/test/wasm2c/spec/exception-handling/try_delegate.txt b/test/wasm2c/spec/exception-handling/try_delegate.txt
new file mode 100644
index 00000000..9b1d7999
--- /dev/null
+++ b/test/wasm2c/spec/exception-handling/try_delegate.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-spec-wasm2c
+;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/try_delegate.wast
+;;; ARGS*: --enable-exceptions
+(;; STDOUT ;;;
+15/15 tests passed.
+;;; STDOUT ;;)