Skip to content

Commit

Permalink
fix c.must_have
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 25, 2024
1 parent 6091d9f commit d544c8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions vlib/v/gen/c/testdata/alias_char_ptr_to_ptr.c.must_have
Original file line number Diff line number Diff line change
@@ -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);
}
1 change: 0 additions & 1 deletion vlib/v/gen/c/testdata/if_else_return.c.must_have
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d544c8d

Please sign in to comment.