From 735c961682a871113acca3e323f4bf979ba0782a Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 17 Oct 2021 12:23:27 +0300 Subject: [PATCH] autofree: add skipped string_plus_string_plus.v sample --- vlib/v/tests/valgrind/string_plus_string_plus.v | 11 +++++++++++ vlib/v/tests/valgrind/valgrind_test.v | 1 + 2 files changed, 12 insertions(+) create mode 100644 vlib/v/tests/valgrind/string_plus_string_plus.v diff --git a/vlib/v/tests/valgrind/string_plus_string_plus.v b/vlib/v/tests/valgrind/string_plus_string_plus.v new file mode 100644 index 0000000000..d0abe8e6e8 --- /dev/null +++ b/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()) +} diff --git a/vlib/v/tests/valgrind/valgrind_test.v b/vlib/v/tests/valgrind/valgrind_test.v index 410b5138de..227df9b332 100644 --- a/vlib/v/tests/valgrind/valgrind_test.v +++ b/vlib/v/tests/valgrind/valgrind_test.v @@ -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) {