summaryrefslogtreecommitdiff
path: root/test/parse/expr/bad-tableswitch-invalid-default-case.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse/expr/bad-tableswitch-invalid-default-case.txt')
-rw-r--r--test/parse/expr/bad-tableswitch-invalid-default-case.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/parse/expr/bad-tableswitch-invalid-default-case.txt b/test/parse/expr/bad-tableswitch-invalid-default-case.txt
new file mode 100644
index 00000000..b4aed7bd
--- /dev/null
+++ b/test/parse/expr/bad-tableswitch-invalid-default-case.txt
@@ -0,0 +1,9 @@
+;;; ERROR: 1
+(module
+ (func
+ (tableswitch (i32.const 0)
+ (table (case 0)) (case 3)
+ (case (nop)))))
+(;; STDERR ;;;
+parse/expr/bad-tableswitch-invalid-default-case.txt:5:30: case variable out of range (max 1)
+;;; STDERR ;;)