2012-02-16 23:49:59 -05:00
|
|
|
// errorcheck
|
2011-07-27 17:56:13 -04:00
|
|
|
|
2016-04-10 14:32:26 -07:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-07-27 17:56:13 -04:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
type T int
|
|
|
|
|
2011-09-23 21:23:40 -07:00
|
|
|
func (T) m() {} // GCCGO_ERROR "previous"
|
2022-09-26 21:27:20 -07:00
|
|
|
func (T) m() {} // ERROR "T\.m already declared|redefinition"
|
2011-07-27 17:56:13 -04:00
|
|
|
|
2011-09-23 21:23:40 -07:00
|
|
|
func (*T) p() {} // GCCGO_ERROR "previous"
|
2022-09-26 21:27:20 -07:00
|
|
|
func (*T) p() {} // ERROR "T\.p already declared|redefinition"
|