aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/unterminated_comment_docs.zc
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 16:50:41 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 16:50:41 +0330
commitccbc77c2d3fa348d0de6f32fc540468401e6880b (patch)
tree32137a48a9a66e5ca486fee5597aaed3f0c12a8b /tests/langerrors/unterminated_comment_docs.zc
parentbool: a value stored into a bool is normalised to 0 or 1 (appendix b.2.6) (diff)
lexer: a block comment that is never closed is 'unterminated comment' (appendix b.2.11)
Diffstat (limited to 'tests/langerrors/unterminated_comment_docs.zc')
-rw-r--r--tests/langerrors/unterminated_comment_docs.zc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/langerrors/unterminated_comment_docs.zc b/tests/langerrors/unterminated_comment_docs.zc
new file mode 100644
index 0000000..02f4335
--- /dev/null
+++ b/tests/langerrors/unterminated_comment_docs.zc
@@ -0,0 +1,4 @@
+// expect: unterminated comment
+docs on;
+fn main() { return 0; }
+/* never closed, with docs on