summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug460.dir
diff options
context:
space:
mode:
authorR?my Oudompheng <oudomphe@phare.normalesup.org>2013-08-27 21:18:32 +0200
committerR?my Oudompheng <oudomphe@phare.normalesup.org>2013-08-27 21:18:32 +0200
commite63e34efffbbebd99c12ed594b312f1ab6c02647 (patch)
treeb3532bcbd24261c36ad85bf99b80000d916e2cd5 /test/fixedbugs/bug460.dir
parent8782c04e33d70e0c98c9bbda30d92128192e3fdf (diff)
downloadgo-e63e34efffbbebd99c12ed594b312f1ab6c02647.tar.gz
cmd/gc: tag builtin error, byte, rune to avoid exporting them.
Fixes issue 5910. Fixes issue 6260. R=golang-dev, daniel.morsing CC=golang-dev https://codereview.appspot.com/13257044
Diffstat (limited to 'test/fixedbugs/bug460.dir')
-rw-r--r--test/fixedbugs/bug460.dir/a.go4
-rw-r--r--test/fixedbugs/bug460.dir/b.go7
2 files changed, 9 insertions, 2 deletions
diff --git a/test/fixedbugs/bug460.dir/a.go b/test/fixedbugs/bug460.dir/a.go
index 02a287b31..29049d9aa 100644
--- a/test/fixedbugs/bug460.dir/a.go
+++ b/test/fixedbugs/bug460.dir/a.go
@@ -6,4 +6,8 @@ package a
type Foo struct {
int
+ int8
+ error
+ rune
+ byte
}
diff --git a/test/fixedbugs/bug460.dir/b.go b/test/fixedbugs/bug460.dir/b.go
index 1868afe07..5c0a0c47e 100644
--- a/test/fixedbugs/bug460.dir/b.go
+++ b/test/fixedbugs/bug460.dir/b.go
@@ -9,6 +9,9 @@ import "./a"
var x a.Foo
func main() {
- x.int = 20 // ERROR "unexported field"
+ x.int = 20 // ERROR "unexported field"
+ x.int8 = 20 // ERROR "unexported field"
+ x.error = nil // ERROR "unexported field"
+ x.rune = 'a' // ERROR "unexported field"
+ x.byte = 20 // ERROR "unexported field"
}
-