Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test "sample" {
- const Test = struct {
- value: []i32
- };
- var tests = []Test {
- Test {.value=&[]i32{24, 2}},
- Test {.value=&[]i32{12}},
- Test {.value=&[]i32{6}},
- Test {.value=&[]i32{3}},
- };
- for (tests) |atest| {
- atest.value[0] = 0;
- warn("{}\n", atest.value[0]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement