diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-21 22:23:23 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-21 22:23:23 +0000 |
commit | a1fe65730fa6c21d9597f45a651d25f232655e8f (patch) | |
tree | cf96cd27ec81f37394a138f6e77fc0e662004482 /libgo | |
parent | 5c197b30ff9cf6d1cdca4d96084f2385be44ccf3 (diff) | |
download | gcc-a1fe65730fa6c21d9597f45a651d25f232655e8f.tar.gz |
compiler: Error if name defined in both package and file blocks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/image/image_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgo/go/image/image_test.go b/libgo/go/image/image_test.go index 2b3f1493fb8..2656757ae9e 100644 --- a/libgo/go/image/image_test.go +++ b/libgo/go/image/image_test.go @@ -10,7 +10,7 @@ import ( "testing" ) -type image interface { +type timage interface { Image Opaque() bool Set(int, int, color.Color) @@ -24,7 +24,7 @@ func cmp(t *testing.T, cm color.Model, c0, c1 color.Color) bool { } func TestImage(t *testing.T) { - testImage := []image{ + testImage := []timage{ NewRGBA(Rect(0, 0, 10, 10)), NewRGBA64(Rect(0, 0, 10, 10)), NewNRGBA(Rect(0, 0, 10, 10)), @@ -52,11 +52,11 @@ func TestImage(t *testing.T) { t.Errorf("%T: at (6, 3), want a non-zero color, got %v", m, m.At(6, 3)) continue } - if !m.SubImage(Rect(6, 3, 7, 4)).(image).Opaque() { + if !m.SubImage(Rect(6, 3, 7, 4)).(timage).Opaque() { t.Errorf("%T: at (6, 3) was not opaque", m) continue } - m = m.SubImage(Rect(3, 2, 9, 8)).(image) + m = m.SubImage(Rect(3, 2, 9, 8)).(timage) if !Rect(3, 2, 9, 8).Eq(m.Bounds()) { t.Errorf("%T: sub-image want bounds %v, got %v", m, Rect(3, 2, 9, 8), m.Bounds()) continue @@ -97,7 +97,7 @@ func Test16BitsPerColorChannel(t *testing.T) { continue } } - testImage := []image{ + testImage := []timage{ NewRGBA64(Rect(0, 0, 10, 10)), NewNRGBA64(Rect(0, 0, 10, 10)), NewAlpha16(Rect(0, 0, 10, 10)), |