Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
builtin_arrays
/
array_fixed_empty_struct_test.v
16
lines
·
12
sloc
·
183 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
@[has_globals]
2
module
main
3
4
const
num_elements = 10
5
6
struct
DummyStruct {
7
}
8
9
__global (
10
d [num_elements]DummyStruct
11
)
12
13
fn
test_main() {
14
a := dump(d)
15
assert a.len == num_elements
16
}
17