From d544c8d2a18895805f4770efd46ef0b8cb91c44e Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 25 Nov 2024 07:15:59 -0300 Subject: [PATCH] fix c.must_have --- vlib/v/gen/c/testdata/alias_char_ptr_to_ptr.c.must_have | 6 ++---- vlib/v/gen/c/testdata/if_else_return.c.must_have | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/vlib/v/gen/c/testdata/alias_char_ptr_to_ptr.c.must_have b/vlib/v/gen/c/testdata/alias_char_ptr_to_ptr.c.must_have index a5258371c1fde2..e4ea955d3d0da6 100644 --- a/vlib/v/gen/c/testdata/alias_char_ptr_to_ptr.c.must_have +++ b/vlib/v/gen/c/testdata/alias_char_ptr_to_ptr.c.must_have @@ -1,10 +1,8 @@ VV_LOCAL_SYMBOL string main__get_two(void) { char* s = main__return_text_two(); -string _t1 = cstring_to_vstring(s); -return _t1; +return cstring_to_vstring(s); } VV_LOCAL_SYMBOL string main__get_one(void) { main__ALcharptr s = main__return_text_one(); -string _t1 = cstring_to_vstring(s); -return _t1; +return cstring_to_vstring(s); } \ No newline at end of file diff --git a/vlib/v/gen/c/testdata/if_else_return.c.must_have b/vlib/v/gen/c/testdata/if_else_return.c.must_have index 03926cc7337b1d..4dfd5ec3ca7233 100644 --- a/vlib/v/gen/c/testdata/if_else_return.c.must_have +++ b/vlib/v/gen/c/testdata/if_else_return.c.must_have @@ -5,6 +5,5 @@ _result_ok(&(string[]) { s }, (_result*)(&_t2), sizeof(string)); } else { return (_result_string){ .is_error=true, .err=_v_error(_SLIT("empty")), .data={EMPTY_STRUCT_INITIALIZATION} }; } -_result_string _t1 = _t2; return _t1; } \ No newline at end of file