tests: valgrind: strings are freed now!
parent
f41e2c0a4b
commit
656bc6b6c8
|
@ -12,8 +12,8 @@ fn foo() {
|
||||||
nums_copy := nums // array assignments call .clone()
|
nums_copy := nums // array assignments call .clone()
|
||||||
println(nums_copy)
|
println(nums_copy)
|
||||||
|
|
||||||
//name := 'Peter' // string literals mustn't be freed
|
name := 'Peter' // string literals mustn't be freed
|
||||||
//str_inter := 'hello, $name' // concatenated strings must be freed
|
str_inter := 'hello, $name' // concatenated strings must be freed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue