v2 / vlib / v / tests / pointers / autogen_free_test.v
23 lines · 20 sloc · 312 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1struct Info {
2 name string
3 notes shared []string
4 maps map[int]int
5 info []SubInfo
6}
7
8struct SubInfo {
9 path string
10 files []string
11}
12
13fn test_autogen_free() {
14 info := &Info{}
15 unsafe { info.free() }
16 assert true
17}
18
19fn test_multiple_autogen_free() {
20 info := &Info{}
21 unsafe { info.free() }
22 assert true
23}
24