aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-24 18:11:43 +0200
committerEugen Wissner <belka@caraus.de>2026-07-24 18:11:43 +0200
commit5dc1e4c991efae2e0dd96b59bc57b2cd81a8c5fb (patch)
treef18cee693c72e6d7bfa2684bb522e52cd1a08033 /testsuite/fail_compilation
parentbb4f474cb2247e0e314beab5d7d72e673ff4e8b6 (diff)
downloadelna-5dc1e4c991efae2e0dd96b59bc57b2cd81a8c5fb.tar.gz
Check the compound statement condition is a boolean
Diffstat (limited to 'testsuite/fail_compilation')
-rw-r--r--testsuite/fail_compilation/while_condition.elna4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/while_condition.elna b/testsuite/fail_compilation/while_condition.elna
new file mode 100644
index 0000000..73fed95
--- /dev/null
+++ b/testsuite/fail_compilation/while_condition.elna
@@ -0,0 +1,4 @@
+begin
+ while 1 do (* @Error Condition must be a boolean, got 'Int' *)
+ end
+end.