diff options
| author | 2026-10-14 16:50:41 +0330 | |
|---|---|---|
| committer | 2026-10-14 16:50:41 +0330 | |
| commit | ccbc77c2d3fa348d0de6f32fc540468401e6880b (patch) | |
| tree | 32137a48a9a66e5ca486fee5597aaed3f0c12a8b /tests/conformance/1-source | |
| parent | bool: 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/conformance/1-source')
| -rw-r--r-- | tests/conformance/1-source/comment_block_unclosed.zc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/conformance/1-source/comment_block_unclosed.zc b/tests/conformance/1-source/comment_block_unclosed.zc index 4ae34e7..cb410f9 100644 --- a/tests/conformance/1-source/comment_block_unclosed.zc +++ b/tests/conformance/1-source/comment_block_unclosed.zc @@ -1,4 +1,5 @@ -// expect: 4/ +// expect error: unterminated comment +// spec 1.2.2: a block comment that is never closed is an error include rt; fn main() { rt.put_n(4); rt.put_c(10); return 0; } /* never closed: rt.put_n(9); |
