tests/valgrind: vfmt fn_with_return_should_free_local_vars.vv

pull/6144/head
Delyan Angelov 2020-08-16 13:22:32 +03:00
parent fbe02c5ae1
commit 191c908f3a
1 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,8 @@
fn many_strings() []string { fn many_strings() []string {
mut res := []string{} mut res := []string{}
for i in 0..10000 { res << '${i:05}' } for i in 0 .. 10000 {
res << '${i:05}'
}
return res return res
} }