Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / go.test / test / ken / mfunc.go
blobae0bc0c58ab6d6567040216c516f4d762d0802f8
1 // $G $D/$F.go && $L $F.$A && ./$A.out
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.
7 package main
9 func
10 main() {
11 var x,y int;
13 x,y = simple(10,20,30);
14 if x+y != 65 { panic(x+y); }
17 func
18 simple(ia,ib,ic int) (oa,ob int) {
19 return ia+5, ib+ic;