nswrap/ast/max_field_alignment_attr_test.go
2019-06-11 12:38:22 -04:00

33 lines
740 B
Go

package ast
import (
"testing"
)
func TestMaxFieldAlignmentAttr(t *testing.T) {
nodes := map[string]testNode{
`0x7fd4b7063ac0 <<invalid sloc>> Implicit 32`: testNode{&MaxFieldAlignmentAttr{
Addr: 0x7fd4b7063ac0,
Pos: NewPositionFromString("<invalid sloc>"),
Size: 32,
ChildNodes: []Node{},
},
0x7fd4b7063ac0,
NewPositionFromString("<invalid sloc>"),
[]Node{},
},
`0x7fd4b7063ac0 <<invalid sloc>> Implicit 8`: testNode{&MaxFieldAlignmentAttr{
Addr: 0x7fd4b7063ac0,
Pos: NewPositionFromString("<invalid sloc>"),
Size: 8,
ChildNodes: []Node{},
},
0x7fd4b7063ac0,
NewPositionFromString("<invalid sloc>"),
[]Node{},
},
}
runNodeTests(t, nodes)
}