blob: cdce1cfbe2c5753f06a29d0f6c82f63827747e77 [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// errorcheck
Russ Cox1bd4b632011-07-27 17:56:13 -04002
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07003// Copyright 2011 The Go Authors. All rights reserved.
Russ Cox1bd4b632011-07-27 17:56:13 -04004// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
9type T int
10
Ian Lance Taylor8a069362011-09-23 21:23:40 -070011func (T) m() {} // GCCGO_ERROR "previous"
12func (T) m() {} // ERROR "T[.]m redeclared|redefinition"
Russ Cox1bd4b632011-07-27 17:56:13 -040013
Ian Lance Taylor8a069362011-09-23 21:23:40 -070014func (*T) p() {} // GCCGO_ERROR "previous"
15func (*T) p() {} // ERROR "[(][*]T[)][.]p redeclared|redefinition"