1// compile 2 3// Copyright 2009 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 7// Test function signatures. 8// Compiled but not run. 9 10package main 11 12type t1 int 13type t2 int 14type t3 int 15 16func f1(t1, t2, t3) 17func f2(t1, t2, t3 bool) 18func f3(t1, t2, x t3) 19func f4(t1, *t3) 20func (x *t1) f5(y []t2) (t1, *t3) 21func f6() (int, *string) 22func f7(*t2, t3) 23func f8(os int) int 24 25func f9(os int) int { 26 return os 27} 28func f10(err error) error { 29 return err 30} 31func f11(t1 string) string { 32 return t1 33} 34