diff options
author | Russ Cox <rsc@golang.org> | 2009-09-14 21:03:53 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-09-14 21:03:53 -0700 |
commit | c67478eb2cfefebf09d0c648efa24bb9578078ba (patch) | |
tree | 026f00b9ffbf7b5b865b8a3c9749c1499e2b182a /test/test0.go | |
parent | a4b4090443684cc9a82c272f2c7ae598c5aceca8 (diff) | |
download | golang-c67478eb2cfefebf09d0c648efa24bb9578078ba.tar.gz |
fix "declared and not used" in tests;
also template/template.go, missed last time.
R=r
DELTA=116 (61 added, 10 deleted, 45 changed)
OCL=34620
CL=34622
Diffstat (limited to 'test/test0.go')
-rw-r--r-- | test/test0.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test0.go b/test/test0.go index 9e2021485..f42b12b3c 100644 --- a/test/test0.go +++ b/test/test0.go @@ -58,12 +58,14 @@ func control_structs() { var p *Point = new(Point).Initialize(2, 3); i := p.Distance(); var f float = 0.3; + _ = f; for {} for {}; for j := 0; j < i; j++ { if i == 0 { } else i = 0; var x float; + _ = x; } foo: // a label var j int; |