Skip to content

Commit 3246200

Browse files
committed
ci,tests: silence compilation warning for vlib/v/tests/testcase_leak.vv
1 parent a40e751 commit 3246200

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vlib/v/tests/testcase_leak.vv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ fn main() {
88
mut y := unsafe { malloc(1000) }
99
// unsafe { free(y) } // leak if commented out
1010
y = unsafe { nil }
11+
_ = y
1112
gc_check_leaks()
1213
}

0 commit comments

Comments
 (0)