Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / go.test / test / ddd2.go
1 // skip
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 // This file is compiled and then imported by ddd3.go.
8
9 package ddd
10
11 func Sum(args ...int) int {
12         s := 0
13         for _, v := range args {
14                 s += v
15         }
16         return s
17 }
18