2012-02-16 21:49:59 -07:00
|
|
|
// errorcheck
|
2011-07-27 15:56:13 -06:00
|
|
|
|
|
|
|
// Copyright 2011 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 T int
|
|
|
|
|
2011-09-23 22:23:40 -06:00
|
|
|
func (T) m() {} // GCCGO_ERROR "previous"
|
|
|
|
func (T) m() {} // ERROR "T[.]m redeclared|redefinition"
|
2011-07-27 15:56:13 -06:00
|
|
|
|
2011-09-23 22:23:40 -06:00
|
|
|
func (*T) p() {} // GCCGO_ERROR "previous"
|
|
|
|
func (*T) p() {} // ERROR "[(][*]T[)][.]p redeclared|redefinition"
|