2012-02-17 04:49:59 +00:00
|
|
|
// errorcheck
|
2011-07-27 21:56:13 +00:00
|
|
|
|
2016-04-10 21:32:26 +00:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-07-27 21:56:13 +00: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-24 04:23:40 +00:00
|
|
|
func (T) m() {} // GCCGO_ERROR "previous"
|
|
|
|
func (T) m() {} // ERROR "T[.]m redeclared|redefinition"
|
2011-07-27 21:56:13 +00:00
|
|
|
|
2011-09-24 04:23:40 +00:00
|
|
|
func (*T) p() {} // GCCGO_ERROR "previous"
|
|
|
|
func (*T) p() {} // ERROR "[(][*]T[)][.]p redeclared|redefinition"
|