mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
13 lines
118 B
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
|
|
}
|
|
}
|