OSDN Git Service

PR go/50656
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / ddd2.go
1 // true
2
3 // Copyright 2010 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 package ddd
8
9 func Sum(args ...int) int {
10         s := 0
11         for _, v := range args {
12                 s += v
13         }
14         return s
15 }
16