mirror of
https://github.com/vlang/v.git
synced 2025-09-11 00:20:26 -04:00
ci,tests: silence compilation warning for vlib/v/tests/testcase_leak.vv
This commit is contained in:
parent
a40e751ba3
commit
32462004e6
@ -8,5 +8,6 @@ fn main() {
|
|||||||
mut y := unsafe { malloc(1000) }
|
mut y := unsafe { malloc(1000) }
|
||||||
// unsafe { free(y) } // leak if commented out
|
// unsafe { free(y) } // leak if commented out
|
||||||
y = unsafe { nil }
|
y = unsafe { nil }
|
||||||
|
_ = y
|
||||||
gc_check_leaks()
|
gc_check_leaks()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user