aboutsummaryrefslogtreecommitdiff
path: root/test/235.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/235.go')
-rw-r--r--test/235.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/235.go b/test/235.go
index 47d6b58ac0..4ff7c30c8c 100644
--- a/test/235.go
+++ b/test/235.go
@@ -8,10 +8,10 @@ package main
type T chan uint64;
-func M(f uint64) (in, out *T) {
+func M(f uint64) (in, out T) {
in = new(T, 100);
out = new(T, 100);
- go func(in, out *T, f uint64) {
+ go func(in, out T, f uint64) {
for {
out <- f * <-in;
}
@@ -44,8 +44,8 @@ func main() {
1250, 1280, 1296, 1350, 1440, 1458, 1500, 1536, 1600 };
x := uint64(1);
- ins := new([]*T, n);
- outs := new([]*T, n);
+ ins := new([]T, n);
+ outs := new([]T, n);
xs := new([]uint64, n);
for i := 0; i < n; i++ {
ins[i], outs[i] = M(F[i]);
@@ -61,7 +61,7 @@ func main() {
for i := 0; i < n; i++ {
if xs[i] == x { xs[i] = <- outs[i]; }
}
-
+
x = min(xs);
if x != OUT[i] { panic("bad: ", x, " should be ", OUT[i]); }
}