github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/indirect_field_decl_test.go (about) 1 package ast 2 3 import ( 4 "testing" 5 ) 6 7 func TestIndirectFieldDecl(t *testing.T) { 8 nodes := map[string]Node{ 9 `0x2be19a8 <line:167:25> col:25 implicit fpstate 'struct _fpstate *'`: &IndirectFieldDecl{ 10 Addr: 0x2be19a8, 11 Pos: NewPositionFromString("line:167:25"), 12 Position2: "col:25", 13 IsImplicit: true, 14 Name: "fpstate", 15 Type: "struct _fpstate *", 16 ChildNodes: []Node{}, 17 }, 18 } 19 20 runNodeTests(t, nodes) 21 }