1
// Copyright 2010 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
5
// Test that variadic functions work across package boundaries.
12
if x := ddd.Sum(1, 2, 3); x != 6 {
13
println("ddd.Sum 6", x)
16
if x := ddd.Sum(); x != 0 {
17
println("ddd.Sum 0", x)
20
if x := ddd.Sum(10); x != 10 {
21
println("ddd.Sum 10", x)
24
if x := ddd.Sum(1, 8); x != 9 {
25
println("ddd.Sum 9", x)