aboutsummaryrefslogtreecommitdiff
path: root/tests/switch/testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/switch/testscript')
-rw-r--r--tests/switch/testscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/switch/testscript b/tests/switch/testscript
index c8adaf0..f6c3753 100644
--- a/tests/switch/testscript
+++ b/tests/switch/testscript
@@ -312,3 +312,15 @@ switch 1: no_such_matcher
EOI
<stdin>:3:8: error: unmatched call to no_such_matcher(<untyped>, <untyped>)
EOE
+
+: match-extraction
+:
+$* <<EOI 2>>EOE != 0
+switch 1
+{
+ case 1: y
+ x = $y
+}
+EOI
+<stdin>:3:9: error: unexpected ':' (match extraction is not yet supported)
+EOE