aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/libgo/go/go/doc/testdata/d.0.golden
blob: c0051995334af6ae93a4aa150e70a7026d6d9c1b (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// 
PACKAGE d

IMPORTPATH
	testdata/d

FILENAMES
	testdata/d1.go
	testdata/d2.go

CONSTANTS
	// CBx constants should appear before CAx constants. 
	const (
		CB2	= iota	// before CB1
		CB1		// before CB0
		CB0		// at end
	)

	// CAx constants should appear after CBx constants. 
	const (
		CA2	= iota	// before CA1
		CA1		// before CA0
		CA0		// at end
	)

	// C0 should be first. 
	const C0 = 0

	// C1 should be second. 
	const C1 = 1

	// C2 should be third. 
	const C2 = 2

	// 
	const (
		// Single const declarations inside ()'s are considered ungrouped
		// and show up in sorted order.
		Cungrouped = 0
	)


VARIABLES
	// VBx variables should appear before VAx variables. 
	var (
		VB2	int	// before VB1
		VB1	int	// before VB0
		VB0	int	// at end
	)

	// VAx variables should appear after VBx variables. 
	var (
		VA2	int	// before VA1
		VA1	int	// before VA0
		VA0	int	// at end
	)

	// V0 should be first. 
	var V0 uintptr

	// V1 should be second. 
	var V1 uint

	// V2 should be third. 
	var V2 int

	// 
	var (
		// Single var declarations inside ()'s are considered ungrouped
		// and show up in sorted order.
		Vungrouped = 0
	)


FUNCTIONS
	// F0 should be first. 
	func F0()

	// F1 should be second. 
	func F1()

	// F2 should be third. 
	func F2()


TYPES
	// T0 should be first. 
	type T0 struct{}

	// T1 should be second. 
	type T1 struct{}

	// T2 should be third. 
	type T2 struct{}

	// TG0 should be first. 
	type TG0 struct{}

	// TG1 should be second. 
	type TG1 struct{}

	// TG2 should be third. 
	type TG2 struct{}