github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/predefined_expr_test.go (about)

     1  package ast
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestPredefinedExpr(t *testing.T) {
     8  	nodes := map[string]Node{
     9  		`0x33d6e08 <col:30> 'const char [25]' lvalue __PRETTY_FUNCTION__`: &PredefinedExpr{
    10  			Addr:       0x33d6e08,
    11  			Pos:        NewPositionFromString("col:30"),
    12  			Type:       "const char [25]",
    13  			IsLvalue:   true,
    14  			Name:       "__PRETTY_FUNCTION__",
    15  			ChildNodes: []Node{},
    16  		},
    17  	}
    18  
    19  	runNodeTests(t, nodes)
    20  }