tests/valgrind: vfmt fn_with_return_should_free_local_vars.vv
parent
fbe02c5ae1
commit
191c908f3a
|
@ -1,6 +1,8 @@
|
|||
fn many_strings() []string {
|
||||
mut res := []string{}
|
||||
for i in 0..10000 { res << '${i:05}' }
|
||||
for i in 0 .. 10000 {
|
||||
res << '${i:05}'
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
|
@ -13,7 +15,7 @@ fn abc() int {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
for i in 0..5 {
|
||||
for i in 0 .. 5 {
|
||||
nstrings := abc()
|
||||
eprintln('nstrings ${i:10}: $nstrings')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue