diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2020-01-10 14:27:05 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2020-01-10 14:27:05 +0000 |
commit | 2fb672a2574004a1e77c8ba83af539673f5cf659 (patch) | |
tree | ba1efe5fc64fac371ba9c620dc86893c9163bd94 /gcc/testsuite/go.test/test | |
parent | 9c158322b6fdb47666f49c001dc54ea9f5c853e9 (diff) | |
download | gcc-2fb672a2574004a1e77c8ba83af539673f5cf659.zip gcc-2fb672a2574004a1e77c8ba83af539673f5cf659.tar.gz gcc-2fb672a2574004a1e77c8ba83af539673f5cf659.tar.bz2 |
compiler: permit duplicate methods from embedded interfaces
This is a language change for Go 1.14.
Updates golang/go#6977
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/214240
From-SVN: r280109
Diffstat (limited to 'gcc/testsuite/go.test/test')
-rw-r--r-- | gcc/testsuite/go.test/test/fixedbugs/bug211.go | 14 | ||||
-rw-r--r-- | gcc/testsuite/go.test/test/fixedbugs/bug251.go | 6 |
2 files changed, 3 insertions, 17 deletions
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug211.go b/gcc/testsuite/go.test/test/fixedbugs/bug211.go deleted file mode 100644 index b150479..0000000 --- a/gcc/testsuite/go.test/test/fixedbugs/bug211.go +++ /dev/null @@ -1,14 +0,0 @@ -// errorcheck - -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package main - -type R interface { duplicate() } -type S interface { duplicate() } -type T interface { R; S } // ERROR "duplicate" - -func main() { -} diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug251.go b/gcc/testsuite/go.test/test/fixedbugs/bug251.go index 43d9d52..706bb8d 100644 --- a/gcc/testsuite/go.test/test/fixedbugs/bug251.go +++ b/gcc/testsuite/go.test/test/fixedbugs/bug251.go @@ -1,18 +1,18 @@ // errorcheck -// Copyright 2010 The Go Authors. All rights reserved. +// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main -type I1 interface { +type I1 interface { // GC_ERROR "invalid recursive type" m() I2 I2 // GCCGO_ERROR "loop|interface" } type I2 interface { - I1 // ERROR "loop|interface" + I1 // GCCGO_ERROR "loop|interface" } |