Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
with_check_option
/
empty_global_const.vv
18
lines
·
14
sloc
·
231 bytes
·
3702796f9d818a61a5b503161335e5b6ba613a12
Raw
1
module main
2
3
const buf_len = 256
4
5
__global not_used_in_code_but_helps_triggering = u64(-1)
6
7
struct Buffer {
8
mut:
9
data [256]u8
10
pos int
11
}
12
13
fn (mut buf Buffer) clear() {
14
buf.pos = 0
15
for i in 0 .. buf_len {
16
buf.data[i] = 0
17
}
18
}
19