aboutsummaryrefslogtreecommitdiff
path: root/test/ddd2.go
diff options
context:
space:
mode:
authorRémy Oudompheng <oudomphe@phare.normalesup.org>2012-10-10 22:35:27 +0200
committerRémy Oudompheng <oudomphe@phare.normalesup.org>2012-10-10 22:35:27 +0200
commitdda1b560ec03e3c5da82bef67322f6f4d16cd7eb (patch)
tree06ad0b32d3edb70d8c93021e717406bcbdfc3f90 /test/ddd2.go
parentc12dab2aa606fda6b8ff54082de775bf7737c866 (diff)
downloadgo-dda1b560ec03e3c5da82bef67322f6f4d16cd7eb.tar.gz
go-dda1b560ec03e3c5da82bef67322f6f4d16cd7eb.zip
test: convert tests to run.go whenever possible.
The other tests either need a complex procedure or are architecture- or OS-dependent. Update #4139. R=golang-dev, daniel.morsing, iant CC=golang-dev https://golang.org/cl/6618062
Diffstat (limited to 'test/ddd2.go')
-rw-r--r--test/ddd2.go15
1 files changed, 3 insertions, 12 deletions
diff --git a/test/ddd2.go b/test/ddd2.go
index a141a39c76..0d9f634ab6 100644
--- a/test/ddd2.go
+++ b/test/ddd2.go
@@ -1,18 +1,9 @@
-// skip
+// rundir
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// This file is compiled and then imported by ddd3.go.
-
-package ddd
-
-func Sum(args ...int) int {
- s := 0
- for _, v := range args {
- s += v
- }
- return s
-}
+// Test that variadic functions work across package boundaries.
+package ignored