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

21 lines
416 B
Go

package ast
import (
"testing"
)
func TestPredefinedExpr(t *testing.T) {
nodes := map[string]Node{
`0x33d6e08 <col:30> 'const char [25]' lvalue __PRETTY_FUNCTION__`: &PredefinedExpr{
Addr: 0x33d6e08,
Pos: NewPositionFromString("col:30"),
Type: "const char [25]",
Lvalue: true,
Name: "__PRETTY_FUNCTION__",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}