v2 / vlib / v / tests / concurrency / shared_array_append_many_test.v
6 lines · 6 sloc · 90 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1fn test_shared_array_append_many() {
2 shared a := []int{}
3 lock a {
4 a << [1, 2, 3]
5 }
6}
7