From 6ef2efb750622819a3ba3ae9ee061e512c1266d6 Mon Sep 17 00:00:00 2001 From: zinc Date: Wed, 14 Oct 2026 17:00:26 +0330 Subject: len: len on a char* is an error with typecheck off too (appendix b.2.14) --- tests/conformance/9-appendix-b/b2_14_len_char_ptr_typecheck_off.zc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/conformance/9-appendix-b') diff --git a/tests/conformance/9-appendix-b/b2_14_len_char_ptr_typecheck_off.zc b/tests/conformance/9-appendix-b/b2_14_len_char_ptr_typecheck_off.zc index b0d0d45..0953328 100644 --- a/tests/conformance/9-appendix-b/b2_14_len_char_ptr_typecheck_off.zc +++ b/tests/conformance/9-appendix-b/b2_14_len_char_ptr_typecheck_off.zc @@ -1,5 +1,5 @@ -// expect: 3/ -// spec appendix b.2.14: len(char*) with typecheck off returns word 0 +// expect error: len needs an array, not a char* +// spec 3.13.5 and appendix b.2.14: len on a char* is an error with typecheck off too include rt; void pn(int x) { rt.put_n(x); rt.put_c(10); } typecheck off; -- cgit v1.2.3