21 lines
416 B
Go
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)
|
||
|
}
|