diff options
| author | 2026-10-14 17:00:26 +0330 | |
|---|---|---|
| committer | 2026-10-14 17:00:26 +0330 | |
| commit | 6ef2efb750622819a3ba3ae9ee061e512c1266d6 (patch) | |
| tree | 2c99f8f8691780bf6c57cccf405115f7b84ba0d1 /tests/conformance/9-appendix-b | |
| parent | prototypes: parameters may be unnamed, int f(int, int*); (appendix b.2.13) (diff) | |
len: len on a char* is an error with typecheck off too (appendix b.2.14)
Diffstat (limited to 'tests/conformance/9-appendix-b')
| -rw-r--r-- | tests/conformance/9-appendix-b/b2_14_len_char_ptr_typecheck_off.zc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
