v2 / vlib / v / tests / c_structs / cstruct_anon_test.c.v
19 lines · 16 sloc · 180 bytes · 36154b8631c9cd599947b1b0e07f00829b1b66fe
Raw
1#insert "@VMODROOT/anon.h"
2
3@[typedef]
4struct C.outer {
5 inner struct {
6 x int
7 }
8}
9
10struct Outer {
11 inner struct {
12 val int
13 }
14}
15
16fn test_main() {
17 _ = Outer{}
18 _ = C.outer{}
19}
20