v2 / vlib / v / gen / c / testdata / autofree_reused.c.must_have
13 lines · 13 sloc · 418 bytes · 6cbb2aa7ca92dad49622e09a1286e3b6979777c5
Raw
1VV_LOC void main__main(void) {
2 byteptr b = ((byteptr)("a"));
3 Array_u8 s = builtin__byteptr_vbytes(b, 1);
4 string _t1 = Array_u8_str(s); builtin__println(_t1); builtin__string_free(&_t1);
5 ;
6 byteptr bb = ((byteptr)("a"));
7string ss = builtin__byteptr_vstring(bb);
8builtin__println(ss);
9string _str_add_rhs_
10s = builtin__string__plus(s, _str_add_rhs_
11builtin__string_free(&_str_add_rhs_
12builtin__string_free(&_sref
13}
14