summaryrefslogtreecommitdiff
path: root/libgo/go/go/doc/testdata
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-10-31 00:59:47 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-10-31 00:59:47 +0000
commitaf146490bb04205107cb23e301ec7a8ff927b5fc (patch)
tree13beeaed3698c61903fe93fb1ce70bd9b18d4e7f /libgo/go/go/doc/testdata
parent725e1be3406315d9bcc8195d7eef0a7082b3c7cc (diff)
downloadgcc-af146490bb04205107cb23e301ec7a8ff927b5fc.tar.gz
runtime: Remove now unnecessary pad field from ParFor.
It is not needed due to the removal of the ctx field. Reviewed-on: https://go-review.googlesource.com/16525 From-SVN: r229616
Diffstat (limited to 'libgo/go/go/doc/testdata')
-rw-r--r--libgo/go/go/doc/testdata/blank.0.golden28
-rw-r--r--libgo/go/go/doc/testdata/blank.1.golden31
-rw-r--r--libgo/go/go/doc/testdata/blank.2.golden28
-rw-r--r--libgo/go/go/doc/testdata/blank.go31
4 files changed, 106 insertions, 12 deletions
diff --git a/libgo/go/go/doc/testdata/blank.0.golden b/libgo/go/go/doc/testdata/blank.0.golden
index dae3ab2affa..c2987cf140e 100644
--- a/libgo/go/go/doc/testdata/blank.0.golden
+++ b/libgo/go/go/doc/testdata/blank.0.golden
@@ -4,14 +4,33 @@ PACKAGE blank
IMPORTPATH
testdata/blank
+IMPORTS
+ os
+
FILENAMES
testdata/blank.go
CONSTANTS
+ // T constants counting from unexported constants.
+ const (
+ C1 T
+ C2
+
+ C3
+
+ C4 int
+ )
+
+ // Constants with an imported type that needs to be propagated.
+ const (
+ Default os.FileMode = 0644
+ Useless = 0312
+ WideOpen = 0777
+ )
+
// Package constants.
const (
- _ int = iota
- I1
+ I1 int
I2
)
@@ -28,10 +47,9 @@ TYPES
//
type T int
- // T constants.
+ // T constants counting from a blank constant.
const (
- _ T = iota
- T1
+ T1 T
T2
)
diff --git a/libgo/go/go/doc/testdata/blank.1.golden b/libgo/go/go/doc/testdata/blank.1.golden
index 333d7e5b040..ee5054a4ed6 100644
--- a/libgo/go/go/doc/testdata/blank.1.golden
+++ b/libgo/go/go/doc/testdata/blank.1.golden
@@ -4,10 +4,25 @@ PACKAGE blank
IMPORTPATH
testdata/blank
+IMPORTS
+ os
+
FILENAMES
testdata/blank.go
CONSTANTS
+ // T constants counting from unexported constants.
+ const (
+ tweedledee T = iota
+ tweedledum
+ C1
+ C2
+ alice
+ C3
+ redQueen int = iota
+ C4
+ )
+
// Package constants.
const (
_ int = iota
@@ -15,6 +30,20 @@ CONSTANTS
I2
)
+ // Constants with an imported type that needs to be propagated.
+ const (
+ zero os.FileMode = 0
+ Default = 0644
+ Useless = 0312
+ WideOpen = 0777
+ )
+
+ // Unexported constants counting from blank iota. See issue 9615.
+ const (
+ _ = iota
+ one = iota + 1
+ )
+
VARIABLES
//
@@ -37,7 +66,7 @@ TYPES
//
type T int
- // T constants.
+ // T constants counting from a blank constant.
const (
_ T = iota
T1
diff --git a/libgo/go/go/doc/testdata/blank.2.golden b/libgo/go/go/doc/testdata/blank.2.golden
index dae3ab2affa..c2987cf140e 100644
--- a/libgo/go/go/doc/testdata/blank.2.golden
+++ b/libgo/go/go/doc/testdata/blank.2.golden
@@ -4,14 +4,33 @@ PACKAGE blank
IMPORTPATH
testdata/blank
+IMPORTS
+ os
+
FILENAMES
testdata/blank.go
CONSTANTS
+ // T constants counting from unexported constants.
+ const (
+ C1 T
+ C2
+
+ C3
+
+ C4 int
+ )
+
+ // Constants with an imported type that needs to be propagated.
+ const (
+ Default os.FileMode = 0644
+ Useless = 0312
+ WideOpen = 0777
+ )
+
// Package constants.
const (
- _ int = iota
- I1
+ I1 int
I2
)
@@ -28,10 +47,9 @@ TYPES
//
type T int
- // T constants.
+ // T constants counting from a blank constant.
const (
- _ T = iota
- T1
+ T1 T
T2
)
diff --git a/libgo/go/go/doc/testdata/blank.go b/libgo/go/go/doc/testdata/blank.go
index f812c77b777..419a78f7d51 100644
--- a/libgo/go/go/doc/testdata/blank.go
+++ b/libgo/go/go/doc/testdata/blank.go
@@ -6,15 +6,37 @@
// See issue 5397.
package blank
+import "os"
+
type T int
-// T constants.
+// T constants counting from a blank constant.
const (
_ T = iota
T1
T2
)
+// T constants counting from unexported constants.
+const (
+ tweedledee T = iota
+ tweedledum
+ C1
+ C2
+ alice
+ C3
+ redQueen int = iota
+ C4
+)
+
+// Constants with an imported type that needs to be propagated.
+const (
+ zero os.FileMode = 0
+ Default = 0644
+ Useless = 0312
+ WideOpen = 0777
+)
+
// Package constants.
const (
_ int = iota
@@ -22,6 +44,13 @@ const (
I2
)
+// Unexported constants counting from blank iota.
+// See issue 9615.
+const (
+ _ = iota
+ one = iota + 1
+)
+
// Blanks not in doc output:
// S has a padding field.