File: enum_constant_decl_test.go

package info (click to toggle)
c2go 0.26.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,052 kB
  • sloc: ansic: 6,037; sh: 82; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package ast

import (
	"testing"
)

func TestEnumConstantDecl(t *testing.T) {
	nodes := map[string]Node{
		`0x1660db0 <line:185:3> __codecvt_noconv 'int'`: &EnumConstantDecl{
			Addr:       0x1660db0,
			Pos:        NewPositionFromString("line:185:3"),
			Position2:  "",
			Referenced: false,
			Name:       "__codecvt_noconv",
			Type:       "int",
			ChildNodes: []Node{},
		},
		`0x3c77ba8 <line:59:3, col:65> col:3 referenced _ISalnum 'int'`: &EnumConstantDecl{
			Addr:       0x3c77ba8,
			Pos:        NewPositionFromString("line:59:3, col:65"),
			Position2:  "col:3",
			Referenced: true,
			Name:       "_ISalnum",
			Type:       "int",
			ChildNodes: []Node{},
		},
	}

	runNodeTests(t, nodes)
}