Skip to content

Commit

Permalink
autofree: add skipped string_plus_string_plus.v sample
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Oct 17, 2021
1 parent 6e4bda3 commit 735c961
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vlib/v/tests/valgrind/string_plus_string_plus.v
@@ -0,0 +1,11 @@
fn abcd() string {
a := 'abc'
b := 'def'
c := 'xyz'
d := '123'
return a + b + c + d
}

fn main() {
println(abcd())
}
1 change: 1 addition & 0 deletions vlib/v/tests/valgrind/valgrind_test.v
Expand Up @@ -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) {
Expand Down

0 comments on commit 735c961

Please sign in to comment.