tests/valgrind: add skipped fn_returning_string_param.vv (-autofree)

pull/6074/head
Delyan Angelov 2020-08-05 19:35:10 +03:00
parent 6c27ce58ed
commit d1257f5590
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
fn identity(s string) string {
return s
}
fn main() {
sa := 'abc'
sb := 'def'
sc := sa + sb
sd := identity(sc)
if sc != sd {
exit(1)
}
}

View File

@ -7,6 +7,7 @@ import v.util.vtest
const (
skip_valgrind_files = [
'vlib/v/tests/valgrind/struct_field.vv',
'vlib/v/tests/valgrind/fn_returning_string_param.vv',
]
)