aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/case_unique_label.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-28 19:19:32 +0200
committerEugen Wissner <belka@caraus.de>2026-07-28 19:19:32 +0200
commit36a274c9a8bca944234589220def025d3920b3ef (patch)
treef198ad272b74ffa3abb13e5063b55514d521e1f6 /testsuite/fail_compilation/case_unique_label.elna
parent5cdaceb77af6a1d98145f8afb34ce6884e21a3d6 (diff)
downloadelna-36a274c9a8bca944234589220def025d3920b3ef.tar.gz
Enforce case label uniqueness and constness
Diffstat (limited to 'testsuite/fail_compilation/case_unique_label.elna')
-rw-r--r--testsuite/fail_compilation/case_unique_label.elna7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/case_unique_label.elna b/testsuite/fail_compilation/case_unique_label.elna
new file mode 100644
index 0000000..a97fb37
--- /dev/null
+++ b/testsuite/fail_compilation/case_unique_label.elna
@@ -0,0 +1,7 @@
+begin
+ case 3 of
+ 1:
+ | 3:
+ | 1 + 2: (* @Error Duplicate case label *)
+ end
+end.