nswrap/ast/compound_literal_expr_test.go
2019-04-09 11:52:21 -04:00

20 lines
409 B
Go

package ast
import (
"testing"
)
func TestCompoundLiteralExpr(t *testing.T) {
nodes := map[string]Node{
`0x5575acce81f0 <col:21, col:40> 'struct node':'struct node' lvalue`: &CompoundLiteralExpr{
Addr: 0x5575acce81f0,
Pos: NewPositionFromString("col:21, col:40"),
Type1: "struct node",
Type2: "struct node",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}