summaryrefslogtreecommitdiff
path: root/test/ken/simpconv.go
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-06-21 15:08:04 -0700
committerKen Thompson <ken@golang.org>2008-06-21 15:08:04 -0700
commit482dff238ba6af557c5c451eb7b6c763ec58e96d (patch)
tree8e4fcdf333cde9acbf2c714d70abf8d49c68b844 /test/ken/simpconv.go
parentc8b358d2025a7d1f5a97374fe1e8aec1d1561159 (diff)
downloadgo-482dff238ba6af557c5c451eb7b6c763ec58e96d.tar.gz
remove receclarations from tests
that are supposed to succeed SVN=124018
Diffstat (limited to 'test/ken/simpconv.go')
-rw-r--r--test/ken/simpconv.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ken/simpconv.go b/test/ken/simpconv.go
index df8242ba3..895024e5b 100644
--- a/test/ken/simpconv.go
+++ b/test/ken/simpconv.go
@@ -9,15 +9,15 @@ package main
func
main()
{
- s := vlong(0);
+ s1 := vlong(0);
for i:=short(0); i<10; i=i+1 {
- s = s + vlong(i);
+ s1 = s1 + vlong(i);
}
- if s != 45 { panic s; }
+ if s1 != 45 { panic s1; }
- s := float(0);
+ s2 := float(0);
for i:=0; i<10; i=i+1 {
- s = s + float(i);
+ s2 = s2 + float(i);
}
- if s != 45 { panic s; }
+ if s2 != 45 { panic s2; }
}