1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/shared_array_ptr_test.v

13 lines
118 B
V

struct AA {
mut:
a shared []&int
}
fn test_shared_array_ptr() {
mut a := AA{}
b := 3
lock a.a {
a.a << &b
}
}