summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/interp/spec/switch.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/interp/spec/switch.txt b/test/interp/spec/switch.txt
index 131ae725..05491f05 100644
--- a/test/interp/spec/switch.txt
+++ b/test/interp/spec/switch.txt
@@ -1,11 +1,9 @@
-;;; TODO: support br_table with argument
-;;; ERROR: 1
;;; TOOL: run-interp-spec
;;; STDIN_FILE: third_party/testsuite/switch.wast
-(;; STDERR ;;;
-Error running "sexpr-wasm":
-third_party/testsuite/switch.wast:99:23: syntax error, unexpected (, expecting )
- (i32.and (i32.const 3) (get_local $i))
- ^
-
-;;; STDERR ;;)
+(;; STDOUT ;;;
+assert_invalid error:
+ third_party/testsuite/switch.wast:155:41: label variable out of range (max 0)
+(assert_invalid (module (func (br_table 3 (i32.const 0)))) "unknown label")
+ ^
+26/26 tests passed.
+;;; STDOUT ;;)