v2 / vlib / v / tests / concurrency / shared_struct_field_test.v
13 lines · 11 sloc · 136 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1module main
2
3struct StructA {
4 ints shared []int = [0]
5}
6
7fn test_main() {
8 a := StructA{}
9 rlock a.ints {
10 dump(a)
11 assert true
12 }
13}
14