autofree: add skipped string_plus_string_plus.v sample

pull/12222/head
Delyan Angelov 2021-10-17 12:23:27 +03:00
parent 6e4bda3741
commit 735c961682
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
fn abcd() string {
a := 'abc'
b := 'def'
c := 'xyz'
d := '123'
return a + b + c + d
}
fn main() {
println(abcd())
}

View File

@ -28,6 +28,7 @@ const skip_valgrind_files = [
'vlib/v/tests/valgrind/fn_returning_string_param.v',
'vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.v',
'vlib/v/tests/valgrind/option_simple.v',
'vlib/v/tests/valgrind/string_plus_string_plus.v',
]
fn vprintln(s string) {