aboutsummaryrefslogtreecommitdiff
path: root/tests/switch
diff options
context:
space:
mode:
Diffstat (limited to 'tests/switch')
-rw-r--r--tests/switch/testscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/switch/testscript b/tests/switch/testscript
index f6c3753..e0ffe8e 100644
--- a/tests/switch/testscript
+++ b/tests/switch/testscript
@@ -204,6 +204,14 @@ EOI
1,d
EOO
+: case-outside
+:
+$* <<EOI 2>>EOE != 0
+case 1
+EOI
+<stdin>:1:1: error: case outside switch
+EOE
+
: default-before-case
:
$* <<EOI 2>>EOE != 0