aboutsummaryrefslogtreecommitdiff
path: root/test/literal.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-14 21:03:53 -0700
committerRuss Cox <rsc@golang.org>2009-09-14 21:03:53 -0700
commit1a3198907bf18ac961762024cf2a27581e6be6c3 (patch)
tree026f00b9ffbf7b5b865b8a3c9749c1499e2b182a /test/literal.go
parent59914723df0b120961477040673c21bc88378f92 (diff)
downloadgo-1a3198907bf18ac961762024cf2a27581e6be6c3.tar.gz
go-1a3198907bf18ac961762024cf2a27581e6be6c3.zip
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/literal.go')
-rw-r--r--test/literal.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/literal.go b/test/literal.go
index 00b7b73426..bd231eae22 100644
--- a/test/literal.go
+++ b/test/literal.go
@@ -108,6 +108,7 @@ func main() {
var u31 uint64 = 1;
var u32 uint64 = 18446744073709551615;
var u33 uint64 = +18446744073709551615;
+ _, _, _, _ = u30, u31, u32, u33;
// float
var f00 float = 3.14159;
@@ -192,6 +193,7 @@ func main() {
assert(s1[4] == 0xc3, "s1-4");
assert(s1[5] == 0xb4, "s1-5");
var s2 string = "\a\b\f\n\r\t\v";
+ _, _ = s0, s2;
var s00 string = "\000";
var s01 string = "\007";