blob: 5ce8996ffaacf569a0d04ebbc2fe3527f8ee79f2 [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// errorcheck
Russ Cox1bd4b632011-07-27 17:56:13 -04002
3// Copyright 2011 The Go Authors. All rights reserved.
4// 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"