nswrap/ast/indirect_field_decl_test.go

26 lines
532 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestIndirectFieldDecl(t *testing.T) {
2019-06-04 00:14:04 -04:00
nodes := map[string]testNode{
`0x2be19a8 <line:167:25> col:25 implicit fpstate 'struct _fpstate *'`: testNode{&IndirectFieldDecl{
2019-04-09 11:52:21 -04:00
Addr: 0x2be19a8,
Pos: NewPositionFromString("line:167:25"),
Position2: "col:25",
Implicit: true,
Name: "fpstate",
Type: "struct _fpstate *",
ChildNodes: []Node{},
},
0x2be19a8,
NewPositionFromString("line:167:25"),
[]Node{},
2019-06-04 00:14:04 -04:00
},
2019-04-09 11:52:21 -04:00
}
runNodeTests(t, nodes)
}