Russ Cox | 8080384 | 2012-02-16 23:49:59 -0500 | [diff] [blame] | 1 | // errorcheck |
Russ Cox | 1bd4b63 | 2011-07-27 17:56:13 -0400 | [diff] [blame] | 2 | |
Emmanuel Odeke | 53fd522 | 2016-04-10 14:32:26 -0700 | [diff] [blame] | 3 | // Copyright 2011 The Go Authors. All rights reserved. |
Russ Cox | 1bd4b63 | 2011-07-27 17:56:13 -0400 | [diff] [blame] | 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | type T int |
| 10 | |
Ian Lance Taylor | 8a06936 | 2011-09-23 21:23:40 -0700 | [diff] [blame] | 11 | func (T) m() {} // GCCGO_ERROR "previous" |
| 12 | func (T) m() {} // ERROR "T[.]m redeclared|redefinition" |
Russ Cox | 1bd4b63 | 2011-07-27 17:56:13 -0400 | [diff] [blame] | 13 | |
Ian Lance Taylor | 8a06936 | 2011-09-23 21:23:40 -0700 | [diff] [blame] | 14 | func (*T) p() {} // GCCGO_ERROR "previous" |
| 15 | func (*T) p() {} // ERROR "[(][*]T[)][.]p redeclared|redefinition" |